[Python-checkins] CVS: python/dist/src/Modules zlibmodule.c,2.41,2.42
Martin v. L?wis
loewis@users.sourceforge.net
Sat, 08 Sep 2001 09:23:36 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv12895
Modified Files:
zlibmodule.c
Log Message:
Silence warnings about passing unsigned char** as char**.
Index: zlibmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/zlibmodule.c,v
retrieving revision 2.41
retrieving revision 2.42
diff -C2 -d -r2.41 -r2.42
*** zlibmodule.c 2001/09/07 16:27:31 2.41
--- zlibmodule.c 2001/09/08 16:23:34 2.42
***************
*** 126,130 ****
/* now get a pointer to the internal string */
! if (PyString_AsStringAndSize(inputString, &input, &length) == -1)
return NULL;
--- 126,130 ----
/* now get a pointer to the internal string */
! if (PyString_AsStringAndSize(inputString, (char**)&input, &length) == -1)
return NULL;
***************
*** 250,254 ****
if (!PyArg_ParseTuple(args, "S|ii:decompress", &inputString, &wsize, &r_strlen))
return NULL;
! if (PyString_AsStringAndSize(inputString, &input, &length) == -1)
return NULL;
--- 250,254 ----
if (!PyArg_ParseTuple(args, "S|ii:decompress", &inputString, &wsize, &r_strlen))
return NULL;
! if (PyString_AsStringAndSize(inputString, (char**)&input, &length) == -1)
return NULL;
***************
*** 524,528 ****
if (!PyArg_ParseTuple(args, "S:compress", &inputString))
return NULL;
! if (PyString_AsStringAndSize(inputString, &input, &inplen) == -1)
return NULL;
--- 524,528 ----
if (!PyArg_ParseTuple(args, "S:compress", &inputString))
return NULL;
! if (PyString_AsStringAndSize(inputString, (char**)&input, &inplen) == -1)
return NULL;
***************
*** 614,618 ****
if (!PyArg_ParseTuple(args, "S:decompress", &inputString))
return NULL;
! if (PyString_AsStringAndSize(inputString, &input, &inplen) == -1)
return NULL;
--- 614,618 ----
if (!PyArg_ParseTuple(args, "S:decompress", &inputString))
return NULL;
! if (PyString_AsStringAndSize(inputString, (char**)&input, &inplen) == -1)
return NULL;