[Python-checkins] python/dist/src/Modules _iconv_codec.c,1.2,1.3
nnorwitz@users.sourceforge.net
nnorwitz@users.sourceforge.net
Sun, 26 Jan 2003 08:26:23 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv22415/Modules
Modified Files:
_iconv_codec.c
Log Message:
Get rid of compiler warnings on Redhat
Index: _iconv_codec.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_iconv_codec.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** _iconv_codec.c 26 Jan 2003 11:48:20 -0000 1.2
--- _iconv_codec.c 26 Jan 2003 16:26:20 -0000 1.3
***************
*** 123,127 ****
}
while (inplen > 0) {
! if (iconv(self->enchdl, &inp, &inplen, &out, &outlen) == -1) {
char reason[128];
int errpos;
--- 123,127 ----
}
while (inplen > 0) {
! if (iconv(self->enchdl, (char**)&inp, &inplen, &out, &outlen) == -1) {
char reason[128];
int errpos;
***************
*** 320,324 ****
}
while (inplen > 0) {
! if (iconv(self->dechdl, &inp, &inplen, &out, &outlen) == -1) {
char reason[128], *reasonpos = (char *)reason;
int errpos;
--- 320,324 ----
}
while (inplen > 0) {
! if (iconv(self->dechdl, (char**)&inp, &inplen, &out, &outlen) == -1) {
char reason[128], *reasonpos = (char *)reason;
int errpos;