[ipfilter-cvs] ipfilter/lib ipft_hx.c, printbuf.c,
Brought to you by:
darren_r
From: Darren <dar...@us...> - 2012-07-20 08:41:29
|
Update of /cvsroot/ipfilter/ipfilter/lib In directory vz-cvs-4.sog:/tmp/cvs-serv31901/lib Modified Files: ipft_hx.c printbuf.c Log Message: 3546260 compiler warnings about non-integer array subscript Index: printbuf.c =================================================================== RCS file: /cvsroot/ipfilter/ipfilter/lib/printbuf.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** printbuf.c 16 Feb 2012 02:22:51 -0000 1.7 --- printbuf.c 20 Jul 2012 08:41:27 -0000 1.8 *************** *** 17,21 **** int len, zend; { ! char *s, c; int i; --- 17,22 ---- int len, zend; { ! char *s; ! int c; int i; Index: ipft_hx.c =================================================================== RCS file: /cvsroot/ipfilter/ipfilter/lib/ipft_hx.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** ipft_hx.c 16 Feb 2012 02:22:51 -0000 1.11 --- ipft_hx.c 20 Jul 2012 08:41:26 -0000 1.12 *************** *** 138,146 **** if ((opts & OPT_DEBUG) != 0) { if (opts & OPT_ASCII) { if (t < (char *)ip) putchar('\t'); while (t < (char *)ip) { ! if (isprint(*t) && isascii(*t)) ! putchar(*t); else putchar('.'); --- 138,147 ---- if ((opts & OPT_DEBUG) != 0) { if (opts & OPT_ASCII) { + int c = *t; if (t < (char *)ip) putchar('\t'); while (t < (char *)ip) { ! if (isprint(c) && isascii(c)) ! putchar(c); else putchar('.'); |