+2001-06-18 Ezra Peisach <epeisach@mit.edu>
+
+ * getdate.y: Cast argument to isalpha()/isspace()/isdigit() to int.
+
Mon Feb 26 13:25:50 2001 Ezra Peisach <epeisach@mit.edu>
* ss_wrapper.c: Include kadmin.h.
/* Make it lowercase. */
for (p = buff; *p; p++)
- if (isupper(*p))
- *p = tolower(*p);
+ if (isupper((int) *p))
+ *p = tolower((int) *p);
if (strcmp(buff, "am") == 0 || strcmp(buff, "a.m.") == 0) {
yylval.Meridian = MERam;
int sign;
for ( ; ; ) {
- while (isspace(*yyInput))
+ while (isspace((int) *yyInput))
yyInput++;
- if (isdigit(c = *yyInput) || c == '-' || c == '+') {
+ c = *yyInput;
+ if (isdigit((int) c) || c == '-' || c == '+') {
if (c == '-' || c == '+') {
sign = c == '-' ? -1 : 1;
- if (!isdigit(*++yyInput))
+ if (!isdigit((int) (*++yyInput)))
/* skip the '-' sign */
continue;
}
else
sign = 0;
- for (yylval.Number = 0; isdigit(c = *yyInput++); )
+ for (yylval.Number = 0; isdigit((int) (c = *yyInput++)); )
yylval.Number = 10 * yylval.Number + c - '0';
yyInput--;
if (sign < 0)
yylval.Number = -yylval.Number;
return sign ? tSNUMBER : tUNUMBER;
}
- if (isalpha(c)) {
- for (p = buff; isalpha(c = *yyInput++) || c == '.'; )
+ if (isalpha((int) c)) {
+ for (p = buff; isalpha((int) (c = *yyInput++)) || c == '.'; )
if (p < &buff[sizeof buff - 1])
*p++ = c;
*p = '\0';