diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-01-26 16:26:20 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-01-26 16:26:20 (GMT) |
commit | 57c115c8ad3d1827b8fb40b864cbd3a77f7e791e (patch) | |
tree | 07efc6fafc0f8009b80c14726fe23c091716ab27 /Modules | |
parent | f4cdb474b6bdd234aa1833b7a60dbdc954ccb030 (diff) | |
download | cpython-57c115c8ad3d1827b8fb40b864cbd3a77f7e791e.zip cpython-57c115c8ad3d1827b8fb40b864cbd3a77f7e791e.tar.gz cpython-57c115c8ad3d1827b8fb40b864cbd3a77f7e791e.tar.bz2 |
Get rid of compiler warnings on Redhat
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_iconv_codec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_iconv_codec.c b/Modules/_iconv_codec.c index 4a93aaa..8e84eec 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; |