Commit 57c115c8 authored by Neal Norwitz's avatar Neal Norwitz

Get rid of compiler warnings on Redhat

parent f4cdb474
...@@ -122,7 +122,7 @@ iconvcodec_encode(iconvcodecObject *self, PyObject *args, PyObject *kwargs) ...@@ -122,7 +122,7 @@ iconvcodec_encode(iconvcodecObject *self, PyObject *args, PyObject *kwargs)
out_top = PyString_AS_STRING(outputobj); \ out_top = PyString_AS_STRING(outputobj); \
} }
while (inplen > 0) { 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]; char reason[128];
int errpos; int errpos;
...@@ -319,7 +319,7 @@ iconvcodec_decode(iconvcodecObject *self, PyObject *args, PyObject *kwargs) ...@@ -319,7 +319,7 @@ iconvcodec_decode(iconvcodecObject *self, PyObject *args, PyObject *kwargs)
out_top = (char *)PyUnicode_AS_UNICODE(outputobj); \ out_top = (char *)PyUnicode_AS_UNICODE(outputobj); \
} }
while (inplen > 0) { 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; char reason[128], *reasonpos = (char *)reason;
int errpos; int errpos;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment