From: Ezra Peisach Date: Mon, 18 Jun 2001 19:07:22 +0000 (+0000) Subject: * kadm_funcs.c: Cast argument to isalnum()/isdigit() to int X-Git-Tag: krb5-1.3-alpha1~1392 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6e0cad8cd73331382a69c9350502024cd8067208;p=krb5.git * kadm_funcs.c: Cast argument to isalnum()/isdigit() to int * acl_files.c (nuke_whitespace): Cast argument to isspace() to int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13375 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/v4server/ChangeLog b/src/kadmin/v4server/ChangeLog index 2c1802a7e..c1008a2da 100644 --- a/src/kadmin/v4server/ChangeLog +++ b/src/kadmin/v4server/ChangeLog @@ -1,3 +1,9 @@ +2001-06-18 Ezra Peisach + + * 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 * kadm_supp.c: Include string.h for strncpy() prototype. diff --git a/src/kadmin/v4server/acl_files.c b/src/kadmin/v4server/acl_files.c index 9a561390a..4e5626856 100644 --- a/src/kadmin/v4server/acl_files.c +++ b/src/kadmin/v4server/acl_files.c @@ -280,7 +280,7 @@ char *buf; 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 */ } diff --git a/src/kadmin/v4server/kadm_funcs.c b/src/kadmin/v4server/kadm_funcs.c index b1213ab45..f188e9c1e 100644 --- a/src/kadmin/v4server/kadm_funcs.c +++ b/src/kadmin/v4server/kadm_funcs.c @@ -665,8 +665,8 @@ int lower(str) int effect=0; for (cp = str; *cp; cp++) { - if (isupper(*cp)) { - *cp = tolower(*cp); + if (isupper((int) *cp)) { + *cp = tolower((int) *cp); effect++; } } @@ -683,11 +683,11 @@ des_check_gecos(gecos, newpw) 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) @@ -723,11 +723,11 @@ str_check_gecos(gecos, pwstr) 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)