diff options
| author | Ezra Peisach <epeisach@mit.edu> | 2001-06-18 18:54:55 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 2001-06-18 18:54:55 +0000 |
| commit | f5dc8da946802ffc856cfe7d77b6155ffc23b753 (patch) | |
| tree | b343e7e38b985315a0747385dd5d0e100946eab8 /src | |
| parent | 0e51d6c232b720971afe98ed6dcc4c0c8d65a700 (diff) | |
| download | krb5-f5dc8da946802ffc856cfe7d77b6155ffc23b753.tar.gz krb5-f5dc8da946802ffc856cfe7d77b6155ffc23b753.tar.xz krb5-f5dc8da946802ffc856cfe7d77b6155ffc23b753.zip | |
* 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
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/kadm5/ChangeLog | 7 | ||||
| -rw-r--r-- | src/lib/kadm5/alt_prof.c | 8 | ||||
| -rw-r--r-- | 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 346843ac5b..1a1e13f2b4 100644 --- a/src/lib/kadm5/ChangeLog +++ b/src/lib/kadm5/ChangeLog @@ -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 diff --git a/src/lib/kadm5/alt_prof.c b/src/lib/kadm5/alt_prof.c index 8be572cc38..c6156f6985 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 9448018ba2..49718c83de 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) * <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'; /* |
