comparison configure @ 32149:0261b706dddf

Remove bogus cast from configure check; fixes the warning: tmp.c:21: warning: passing argument 2 of 'iconv' from incompatible pointer type
author diego
date Tue, 14 Sep 2010 10:11:46 +0000
parents 9e345136c335
children 068e6ec38400
comparison
equal deleted inserted replaced
32148:9e345136c335 32149:0261b706dddf
3690 while ((numread = read(0, inbuffer, INBUFSIZE))) { 3690 while ((numread = read(0, inbuffer, INBUFSIZE))) {
3691 char *iptr=inbuffer; 3691 char *iptr=inbuffer;
3692 char *optr=outbuffer; 3692 char *optr=outbuffer;
3693 size_t inleft=numread; 3693 size_t inleft=numread;
3694 size_t outleft=OUTBUFSIZE; 3694 size_t outleft=OUTBUFSIZE;
3695 if (iconv(icdsc, (const char **)&iptr, &inleft, &optr, &outleft) 3695 if (iconv(icdsc, &iptr, &inleft, &optr, &outleft)
3696 != (size_t)(-1)) { 3696 != (size_t)(-1)) {
3697 write(1, outbuffer, OUTBUFSIZE - outleft); 3697 write(1, outbuffer, OUTBUFSIZE - outleft);
3698 } 3698 }
3699 } 3699 }
3700 if (iconv_close(icdsc) == -1) 3700 if (iconv_close(icdsc) == -1)