* alt_prof.c (krb5_read_realm_params): Cast argument to isspace()
authorEzra Peisach <epeisach@mit.edu>
Mon, 18 Jun 2001 18:54:55 +0000 (18:54 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 18 Jun 2001 18:54:55 +0000 (18:54 +0000)
to int.
* logger.c (krb5_klog_init): Likewise.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13370 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kadm5/ChangeLog
src/lib/kadm5/alt_prof.c
src/lib/kadm5/logger.c

index 346843ac5b1090aa85fe24d417a46dc0ea5f310e..1a1e13f2b4242aa3d59d5615ab8276355f034f11 100644 (file)
@@ -1,3 +1,10 @@
+2001-06-18  Ezra Peisach  <epeisach@mit.edu>
+
+
+       * alt_prof.c (krb5_read_realm_params): Cast argument to isspace()
+       to int.
+       * logger.c (krb5_klog_init): Likewise.
+
 2001-06-17  Ezra Peisach  <epeisach@mit.edu>
 
        * logger.c (klog_vsyslog): If krb5_klog_init() is not called, do
index 8be572cc384bbc80cb8ed8e46d5b5e403d174050..c6156f69859ddcf6d4b37df1d6b11ff22183c2bc 100644 (file)
@@ -598,14 +598,14 @@ krb5_error_code kadm5_get_config_params(context, kdcprofile, kdcenv,
                  (ep = strchr(sp, (int) '\t'))) {
                   /* Fill in trailing whitespace of sp */
                   tp = ep - 1;
-                  while (isspace(*tp) && (tp > sp)) {
+                  while (isspace((int) *tp) && (tp > sp)) {
                        *tp = '\0';
                        tp--;
                   }
                   *ep = '\0';
                   ep++;
                   /* Skip over trailing whitespace of ep */
-                  while (isspace(*ep) && (*ep)) ep++;
+                  while (isspace((int) *ep) && (*ep)) ep++;
              }
              /* Convert this flag */
              if (krb5_string_to_flags(sp,
@@ -846,14 +846,14 @@ krb5_read_realm_params(kcontext, realm, kdcprofile, kdcenv, rparamp)
                (ep = strchr(sp, (int) '\t'))) {
                /* Fill in trailing whitespace of sp */
                tp = ep - 1;
-               while (isspace(*tp) && (tp < sp)) {
+               while (isspace((int) *tp) && (tp < sp)) {
                    *tp = '\0';
                    tp--;
                }
                *ep = '\0';
                ep++;
                /* Skip over trailing whitespace of ep */
-               while (isspace(*ep) && (*ep)) ep++;
+               while (isspace((int) *ep) && (*ep)) ep++;
            }
            /* Convert this flag */
            if (krb5_string_to_flags(sp,
index 9448018ba28ef4ec97c93dec46c3b5b6e9504f7c..49718c83deeed41b61154cce6140e556ac7f645c 100644 (file)
@@ -413,9 +413,9 @@ krb5_klog_init(kcontext, ename, whoami, do_com_err)
                 *      <whitespace><data><whitespace>
                 * so, trim off the leading and trailing whitespace here.
                 */
-               for (cp = logging_specs[i]; isspace(*cp); cp++);
+               for (cp = logging_specs[i]; isspace((int) *cp); cp++);
                for (cp2 = &logging_specs[i][strlen(logging_specs[i])-1];
-                    isspace(*cp2); cp2--);
+                    isspace((int) *cp2); cp2--);
                cp2++;
                *cp2 = '\0';
                /*