* server_misc.c (passwd_check): cast argument to
authorEzra Peisach <epeisach@mit.edu>
Mon, 18 Jun 2001 18:58:00 +0000 (18:58 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 18 Jun 2001 18:58:00 +0000 (18:58 +0000)
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

src/lib/kadm5/srv/ChangeLog
src/lib/kadm5/srv/server_acl.c
src/lib/kadm5/srv/server_misc.c

index 9c87ae5fcbf1aaee81a6eb77ff36735d03723709..a00855be1378fac64cd029e1c508fe43bc645ce7 100644 (file)
@@ -1,3 +1,11 @@
+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.
index 0ecc4cc520b31f0299c81b42804dbf7efbfec475..e114bfc865b3a1cb4b63edb4cd5a578831a44bc7 100644 (file)
@@ -197,7 +197,7 @@ acl_parse_line(lp)
            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) {
@@ -240,7 +240,7 @@ acl_parse_line(lp)
                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);
index fac47bb2f6d591d1f1b36d18f821faf242c23f1b..02c7dced6961fbc6eb4982a42298e768e2088d23 100644 (file)
@@ -139,17 +139,17 @@ passwd_check(kadm5_server_handle_t handle,
            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 {