summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-13 17:47:45 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-13 17:47:45 +0200
commit85165f89d3df8ad1c66bd9c842795885c407069e (patch)
treef5f678e21c7354d631c9eb066d2e6d8da11cd25b /python
parente8d06358310f09ea2c28e7640af8dce615040df7 (diff)
downloadpython-apt-85165f89d3df8ad1c66bd9c842795885c407069e.tar.gz
python: No zero-size arrays for char *kwlist[].
Diffstat (limited to 'python')
-rw-r--r--python/acquire.cc2
-rw-r--r--python/cache.cc2
-rw-r--r--python/cdrom.cc2
-rw-r--r--python/configuration.cc2
-rw-r--r--python/depcache.cc6
-rw-r--r--python/tag.cc4
6 files changed, 9 insertions, 9 deletions
diff --git a/python/acquire.cc b/python/acquire.cc
index 4329e790..8b6de173 100644
--- a/python/acquire.cc
+++ b/python/acquire.cc
@@ -281,7 +281,7 @@ static PyObject *PkgAcquireNew(PyTypeObject *type,PyObject *Args,PyObject *kwds)
pkgAcquire *fetcher;
PyObject *pyFetchProgressInst = NULL;
- static char *kwlist[] = {"progress", 0};
+ char *kwlist[] = {"progress", 0};
if (PyArg_ParseTupleAndKeywords(Args,kwds,"|O",kwlist,&pyFetchProgressInst) == 0)
return 0;
diff --git a/python/cache.cc b/python/cache.cc
index d3a8a949..c160cf69 100644
--- a/python/cache.cc
+++ b/python/cache.cc
@@ -244,7 +244,7 @@ static PyObject *CacheMapOp(PyObject *Self,PyObject *Arg)
static PyObject *PkgCacheNew(PyTypeObject *type,PyObject *Args,PyObject *kwds)
{
PyObject *pyCallbackInst = 0;
- static char *kwlist[] = {"progress", 0};
+ char *kwlist[] = {"progress", 0};
if (PyArg_ParseTupleAndKeywords (Args, kwds, "|O", kwlist, &pyCallbackInst) == 0)
return 0;
diff --git a/python/cdrom.cc b/python/cdrom.cc
index 84d7179f..50d1b4b1 100644
--- a/python/cdrom.cc
+++ b/python/cdrom.cc
@@ -66,7 +66,7 @@ static PyObject *PkgCdromNew(PyTypeObject *type,PyObject *Args,PyObject *kwds)
{
pkgCdrom *cdrom = new pkgCdrom();
- static char *kwlist[] = {};
+ char *kwlist[] = {NULL};
if (PyArg_ParseTupleAndKeywords(Args,kwds,"",kwlist) == 0)
return 0;
diff --git a/python/configuration.cc b/python/configuration.cc
index c7d7d796..ba075133 100644
--- a/python/configuration.cc
+++ b/python/configuration.cc
@@ -492,7 +492,7 @@ static PyMethodDef CnfMethods[] =
};
static PyObject *CnfNew(PyTypeObject *type, PyObject *args, PyObject *kwds) {
- static char *kwlist[] = {};
+ char *kwlist[] = {NULL};
if (PyArg_ParseTupleAndKeywords(args,kwds,"",kwlist) == 0)
return 0;
return CppPyObject_NEW<Configuration>(type);
diff --git a/python/depcache.cc b/python/depcache.cc
index 2d72a82a..e78b9f4e 100644
--- a/python/depcache.cc
+++ b/python/depcache.cc
@@ -655,7 +655,7 @@ static PyGetSetDef PkgDepCacheGetSet[] = {
static PyObject *PkgDepCacheNew(PyTypeObject *type,PyObject *Args,PyObject *kwds)
{
PyObject *Owner;
- static char *kwlist[] = {"cache", 0};
+ char *kwlist[] = {"cache", 0};
if (PyArg_ParseTupleAndKeywords(Args,kwds,"O!",kwlist,&PyCache_Type,
&Owner) == 0)
return 0;
@@ -744,7 +744,7 @@ PyObject *GetDepCache(PyObject *Self,PyObject *Args)
static PyObject *PkgProblemResolverNew(PyTypeObject *type,PyObject *Args,PyObject *kwds)
{
PyObject *Owner;
- static char *kwlist[] = {"depcache",0};
+ char *kwlist[] = {"depcache",0};
if (PyArg_ParseTupleAndKeywords(Args,kwds,"O!",kwlist,&PyDepCache_Type,
&Owner) == 0)
return 0;
@@ -952,7 +952,7 @@ static PyMethodDef PkgActionGroupMethods[] =
static PyObject *PkgActionGroupNew(PyTypeObject *type,PyObject *Args,PyObject *kwds)
{
PyObject *Owner;
- static char *kwlist[] = {"depcache", 0};
+ char *kwlist[] = {"depcache", 0};
if (PyArg_ParseTupleAndKeywords(Args,kwds,"O!",kwlist,&PyDepCache_Type,
&Owner) == 0)
return 0;
diff --git a/python/tag.cc b/python/tag.cc
index 573e8ce2..b393effe 100644
--- a/python/tag.cc
+++ b/python/tag.cc
@@ -260,7 +260,7 @@ static PyObject *TagFileJump(PyObject *Self,PyObject *Args)
// ---------------------------------------------------------------------
static PyObject *TagSecNew(PyTypeObject *type,PyObject *Args,PyObject *kwds) {
char *Data;
- static char *kwlist[] = {"text", 0};
+ char *kwlist[] = {"text", 0};
if (PyArg_ParseTupleAndKeywords(Args,kwds,"s",kwlist,&Data) == 0)
return 0;
@@ -301,7 +301,7 @@ PyObject *ParseSection(PyObject *self,PyObject *Args)
static PyObject *TagFileNew(PyTypeObject *type,PyObject *Args,PyObject *kwds)
{
PyObject *File;
- static char *kwlist[] = {"file", 0};
+ char *kwlist[] = {"file", 0};
if (PyArg_ParseTupleAndKeywords(Args,kwds,"O",kwlist,&File) == 0)
return 0;
int fileno = PyObject_AsFileDescriptor(File);