From f5dc8da946802ffc856cfe7d77b6155ffc23b753 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 18 Jun 2001 18:54:55 +0000 Subject: [PATCH] * alt_prof.c (krb5_read_realm_params): Cast argument to isspace() 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 | 7 +++++++ src/lib/kadm5/alt_prof.c | 8 ++++---- src/lib/kadm5/logger.c | 4 ++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/lib/kadm5/ChangeLog b/src/lib/kadm5/ChangeLog index 346843ac5..1a1e13f2b 100644 --- a/src/lib/kadm5/ChangeLog +++ b/src/lib/kadm5/ChangeLog @@ -1,3 +1,10 @@ +2001-06-18 Ezra Peisach + + + * alt_prof.c (krb5_read_realm_params): Cast argument to isspace() + to int. + * logger.c (krb5_klog_init): Likewise. + 2001-06-17 Ezra Peisach * logger.c (klog_vsyslog): If krb5_klog_init() is not called, do diff --git a/src/lib/kadm5/alt_prof.c b/src/lib/kadm5/alt_prof.c index 8be572cc3..c6156f698 100644 --- a/src/lib/kadm5/alt_prof.c +++ b/src/lib/kadm5/alt_prof.c @@ -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, diff --git a/src/lib/kadm5/logger.c b/src/lib/kadm5/logger.c index 9448018ba..49718c83d 100644 --- a/src/lib/kadm5/logger.c +++ b/src/lib/kadm5/logger.c @@ -413,9 +413,9 @@ krb5_klog_init(kcontext, ename, whoami, do_com_err) * * 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'; /* -- 2.26.2