+2001-06-18 Ezra Peisach <epeisach@mit.edu>
+
+ * kadm_funcs.c: Cast argument to isalnum()/isdigit() to int.
+
+ * acl_files.c (nuke_whitespace): Cast argument to isspace() to int.
+
2001-06-11 Ezra Peisach <epeisach@rna.mit.edu>
* kadm_supp.c: Include string.h for strncpy() prototype.
register char *pin, *pout;
for(pin = pout = buf; *pin != '\0'; pin++)
- if(!isspace(*pin)) *pout++ = *pin;
+ if(!isspace((int) *pin)) *pout++ = *pin;
*pout = '\0'; /* Terminate the string */
}
int effect=0;
for (cp = str; *cp; cp++) {
- if (isupper(*cp)) {
- *cp = tolower(*cp);
+ if (isupper((int) *cp)) {
+ *cp = tolower((int) *cp);
effect++;
}
}
for (cp = gecos; *cp; ) {
/* Skip past punctuation */
for (; *cp; cp++)
- if (isalnum(*cp))
+ if (isalnum((int) *cp))
break;
/* Skip to the end of the word */
for (ncp = cp; *ncp; ncp++)
- if (!isalnum(*ncp) && *ncp != '\'')
+ if (!isalnum((int) *ncp) && *ncp != '\'')
break;
/* Delimit end of word */
if (*ncp)
for (cp = gecos; *cp; ) {
/* Skip past punctuation */
for (; *cp; cp++)
- if (isalnum(*cp))
+ if (isalnum((int) *cp))
break;
/* Skip to the end of the word */
for (ncp = cp; *ncp; ncp++)
- if (!isalnum(*ncp) && *ncp != '\'')
+ if (!isalnum((int) *ncp) && *ncp != '\'')
break;
/* Delimit end of word */
if (*ncp)