summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-09-08 16:23:34 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-09-08 16:23:34 (GMT)
commitcaef93d82c3bfdad652564540e8717f2cf522af0 (patch)
treed05f3c3fac10ddf24827c4648fb9451cb8fde266 /Modules
parent02646fe6d3ee39928b166fbefa229d51ac4339a9 (diff)
downloadcpython-caef93d82c3bfdad652564540e8717f2cf522af0.zip
cpython-caef93d82c3bfdad652564540e8717f2cf522af0.tar.gz
cpython-caef93d82c3bfdad652564540e8717f2cf522af0.tar.bz2
Silence warnings about passing unsigned char** as char**.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/zlibmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
index f013647..1d038c7 100644
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -125,7 +125,7 @@ PyZlib_compress(PyObject *self, PyObject *args)
return NULL;
/* now get a pointer to the internal string */
- if (PyString_AsStringAndSize(inputString, &input, &length) == -1)
+ if (PyString_AsStringAndSize(inputString, (char**)&input, &length) == -1)
return NULL;
zst.avail_out = length + length/1000 + 12 + 1;
@@ -249,7 +249,7 @@ PyZlib_decompress(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "S|ii:decompress", &inputString, &wsize, &r_strlen))
return NULL;
- if (PyString_AsStringAndSize(inputString, &input, &length) == -1)
+ if (PyString_AsStringAndSize(inputString, (char**)&input, &length) == -1)
return NULL;
if (r_strlen <= 0)
@@ -523,7 +523,7 @@ PyZlib_objcompress(compobject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "S:compress", &inputString))
return NULL;
- if (PyString_AsStringAndSize(inputString, &input, &inplen) == -1)
+ if (PyString_AsStringAndSize(inputString, (char**)&input, &inplen) == -1)
return NULL;
if (!(RetVal = PyString_FromStringAndSize(NULL, length))) {
@@ -613,7 +613,7 @@ PyZlib_objdecompress(compobject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "S:decompress", &inputString))
return NULL;
- if (PyString_AsStringAndSize(inputString, &input, &inplen) == -1)
+ if (PyString_AsStringAndSize(inputString, (char**)&input, &inplen) == -1)
return NULL;
if (!(RetVal = PyString_FromStringAndSize(NULL, length))) {