islower()/isupper(), isdigit(), ispunct() to int.
* server_acl.c (acl_parse_line): Cast argument to
isupper()/isspace() to int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13371
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-06-18 Ezra Peisach <epeisach@mit.edu>
+
+ * server_misc.c (passwd_check): cast argument to
+ islower()/isupper(), isdigit(), ispunct() to int.
+
+ * server_acl.c (acl_parse_line): Cast argument to
+ isupper()/isspace() to int.
+
2001-06-08 Ezra Peisach <epeisach@mit.edu>
* svr_principal.c (check_pw_reuse): Cleanup assignment in conditional.
for (op=acle_ops; *op; op++) {
char rop;
- rop = (isupper(*op)) ? tolower(*op) : *op;
+ rop = (isupper((int) *op)) ? tolower((int) *op) : *op;
found = 0;
for (t=0; acl_op_table[t].ao_op; t++) {
if (rop == acl_op_table[t].ao_op) {
char *trailing;
trailing = &acle_restrictions[strlen(acle_restrictions)-1];
- while ( isspace(*trailing) )
+ while ( isspace((int) *trailing) )
trailing--;
trailing[1] = '\0';
acle->ae_restriction_string = strdup(acle_restrictions);
return KADM5_PASS_Q_TOOSHORT;
s = password;
while ((c = *s++)) {
- if (islower(c)) {
+ if (islower((int) c)) {
nlower = 1;
continue;
}
- else if (isupper(c)) {
+ else if (isupper((int) c)) {
nupper = 1;
continue;
- } else if (isdigit(c)) {
+ } else if (isdigit((int) c)) {
ndigit = 1;
continue;
- } else if (ispunct(c)) {
+ } else if (ispunct((int) c)) {
npunct = 1;
continue;
} else {