99 *
1010 *
1111 * IDENTIFICATION
12- * $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.43 2000/10/26 17:31:34 tgl Exp $
12+ * $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.44 2000/12/03 20:45:33 tgl Exp $
1313 *
1414 *-------------------------------------------------------------------------
1515 */
@@ -104,7 +104,7 @@ get_token(char **tok, char **val, char *str)
104104return NULL ;
105105
106106/* skip leading white space */
107- while (isspace ((int )* str ))
107+ while (isspace ((unsigned char )* str ))
108108str ++ ;
109109
110110/* end of string? then return NULL */
@@ -118,15 +118,16 @@ get_token(char **tok, char **val, char *str)
118118* tok = str ;
119119
120120/* Advance to end of word */
121- while (* str && !isspace ((int )* str )&& * str != ',' && * str != '=' )
121+ while (* str && !isspace ((unsignedchar )* str )&&
122+ * str != ',' && * str != '=' )
122123str ++ ;
123124
124125/* Terminate word string for caller */
125126ch = * str ;
126127* str = '\0' ;
127128
128129/* Skip any whitespace */
129- while (isspace ((int )ch ))
130+ while (isspace ((unsigned char )ch ))
130131ch = * (++ str );
131132
132133/* end of string? */
@@ -144,7 +145,7 @@ get_token(char **tok, char **val, char *str)
144145str ++ ;
145146
146147/* skip whitespace after '=' */
147- while (isspace ((int )* str ))
148+ while (isspace ((unsigned char )* str ))
148149str ++ ;
149150
150151if (* str == ',' || * str == '\0' )
@@ -154,15 +155,15 @@ get_token(char **tok, char **val, char *str)
154155* val = str ;
155156
156157/* Advance to end of word */
157- while (* str && !isspace ((int )* str )&& * str != ',' )
158+ while (* str && !isspace ((unsigned char )* str )&& * str != ',' )
158159str ++ ;
159160
160161/* Terminate word string for caller */
161162ch = * str ;
162163* str = '\0' ;
163164
164165/* Skip any whitespace */
165- while (isspace ((int )ch ))
166+ while (isspace ((unsigned char )ch ))
166167ch = * (++ str );
167168
168169/* end of string? */