From: Neal Norwitz Date: Sun, 26 Jan 2003 16:26:20 +0000 (+0000) Subject: Get rid of compiler warnings on Redhat X-Git-Tag: v2.3c1~2306 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57c115c8ad3d1827b8fb40b864cbd3a77f7e791e;p=thirdparty%2FPython%2Fcpython.git Get rid of compiler warnings on Redhat --- diff --git a/Modules/_iconv_codec.c b/Modules/_iconv_codec.c index 4a93aaa475d5..8e84eeccb3c0 100644 --- a/Modules/_iconv_codec.c +++ b/Modules/_iconv_codec.c @@ -122,7 +122,7 @@ iconvcodec_encode(iconvcodecObject *self, PyObject *args, PyObject *kwargs) out_top = PyString_AS_STRING(outputobj); \ } while (inplen > 0) { - if (iconv(self->enchdl, &inp, &inplen, &out, &outlen) == -1) { + if (iconv(self->enchdl, (char**)&inp, &inplen, &out, &outlen) == -1) { char reason[128]; int errpos; @@ -319,7 +319,7 @@ iconvcodec_decode(iconvcodecObject *self, PyObject *args, PyObject *kwargs) out_top = (char *)PyUnicode_AS_UNICODE(outputobj); \ } while (inplen > 0) { - if (iconv(self->dechdl, &inp, &inplen, &out, &outlen) == -1) { + if (iconv(self->dechdl, (char**)&inp, &inplen, &out, &outlen) == -1) { char reason[128], *reasonpos = (char *)reason; int errpos;