summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>1999-07-19 15:07:17 +0000
committerAndrey Hristov <andrey@php.net>1999-07-19 15:07:17 +0000
commitd1b1e3513f5a0f9892f5abc266965e31e081b1bd (patch)
tree0744577b3609686352afa4ee0b609c155e57166a
parent951f65f6eda79495792c7512493dbe091f19ffcd (diff)
downloadphp-git-d1b1e3513f5a0f9892f5abc266965e31e081b1bd.tar.gz
Kill compiler warnings.
-rw-r--r--ext/standard/file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index 257d654507..0e651e57a0 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -1553,7 +1553,7 @@ PHP_FUNCTION(fgetcsv) {
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 @@ PHP_FUNCTION(fgetcsv) {
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 @@ PHP_FUNCTION(fgetcsv) {
*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++;
}