summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2009-04-16 06:42:02 (GMT)
committerThomas Heller <theller@ctypes.org>2009-04-16 06:42:02 (GMT)
commit2d693588024349dac18a882e0ff1b5721f81c89b (patch)
treecc56a0241c9d3042b89cb4c04338e18915d83a14 /Modules
parent4954ffd98d07ee783a3c718129229ddf886c128c (diff)
downloadcpython-2d693588024349dac18a882e0ff1b5721f81c89b.zip
cpython-2d693588024349dac18a882e0ff1b5721f81c89b.tar.gz
cpython-2d693588024349dac18a882e0ff1b5721f81c89b.tar.bz2
Remove duplicated function declaration.
Make _pagesize static.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/ctypes.h1
-rw-r--r--Modules/_ctypes/malloc_closure.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_ctypes/ctypes.h b/Modules/_ctypes/ctypes.h
index d5cb326..6de9a81 100644
--- a/Modules/_ctypes/ctypes.h
+++ b/Modules/_ctypes/ctypes.h
@@ -351,7 +351,6 @@ struct tagPyCArgObject {
};
extern PyTypeObject PyCArg_Type;
-extern PyCArgObject *new_CArgObject(void);
#define PyCArg_CheckExact(v) ((v)->ob_type == &PyCArg_Type)
extern PyCArgObject *new_CArgObject(void);
diff --git a/Modules/_ctypes/malloc_closure.c b/Modules/_ctypes/malloc_closure.c
index 73fc0d9..105935e 100644
--- a/Modules/_ctypes/malloc_closure.c
+++ b/Modules/_ctypes/malloc_closure.c
@@ -32,7 +32,7 @@ typedef union _tagITEM {
} ITEM;
static ITEM *free_list;
-int _pagesize;
+static int _pagesize;
static void more_core(void)
{