cvs: /php4/ext/standard file.c

From: Date: Mon, 19 Jul 1999 11:07:17 +0000
Subject: cvs: /php4/ext/standard file.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-2233@lists.php.net to get a copy of this message
andrey Mon Jul 19 11:07:17 1999 EDT Modified files: /php4/ext/standard file.c Log: Kill compiler warnings. Index: php4/ext/standard/file.c diff -u php4/ext/standard/file.c:1.20 php4/ext/standard/file.c:1.21 --- php4/ext/standard/file.c:1.20 Fri Jul 16 09:12:55 1999 +++ php4/ext/standard/file.c Mon Jul 19 11:07:17 1999 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: file.c,v 1.20 1999/07/16 13:12:55 zeev Exp $ */ +/* $Id: file.c,v 1.21 1999/07/19 15:07:17 andrey Exp $ */ /* Synced with php3 revision 1.218 1999-06-16 [ssb] */ @@ -1553,7 +1553,7 @@ bptr = buf; tptr = buf + strlen(buf) -1; - while ( isspace(*tptr) && (tptr > bptr) ) *tptr--=0; + while ( isspace((int)*tptr) && (tptr > bptr) ) *tptr--=0; /* add single space - makes it easier to parse trailing null field */ *++tptr = ' '; @@ -1576,7 +1576,7 @@ do { /* 1. Strip any leading space */ - while(isspace(*bptr)) bptr++; + while(isspace((int)*bptr)) bptr++; /* 2. Read field, leaving bptr pointing at start of next field */ if (*bptr == '"') { /* 2A. handle quote delimited field */ @@ -1605,7 +1605,7 @@ *tptr=0; /* terminate temporary string */ if (strlen(temp)) { tptr--; - while (isspace(*tptr)) *tptr-- = 0; /* strip any trailing spaces */ + while (isspace((int)*tptr)) *tptr-- = 0; /* strip any trailing spaces */ } if (*bptr == delimiter) bptr++; }

« previous php.version4 (#2233) next »