diff options
author | Ken Raeburn <raeburn@mit.edu> | 1999-12-06 21:54:10 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 1999-12-06 21:54:10 +0000 |
commit | 179535282c21bb601c99db6a4d2f873f58df91ce (patch) | |
tree | 2f149149fc79dbe7c29e39e30dcb882402c560e3 | |
parent | b311e656b260f7d7d6a61f8c707a713a6ddf2894 (diff) | |
download | krb5-179535282c21bb601c99db6a4d2f873f58df91ce.tar.gz krb5-179535282c21bb601c99db6a4d2f873f58df91ce.tar.xz krb5-179535282c21bb601c99db6a4d2f873f58df91ce.zip |
* logger.c (klog_vsyslog): Convert pid_t to long for printing
* alt_prof.c (kadm5_get_config_params): Fix bug in direction of
test while walking through whitespace. Thanks to Matt Crawford.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11951 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/kadm5/ChangeLog | 9 | ||||
-rw-r--r-- | src/lib/kadm5/alt_prof.c | 2 | ||||
-rw-r--r-- | src/lib/kadm5/logger.c | 4 |
3 files changed, 12 insertions, 3 deletions
diff --git a/src/lib/kadm5/ChangeLog b/src/lib/kadm5/ChangeLog index ef7eee2505..2eb05a8bcf 100644 --- a/src/lib/kadm5/ChangeLog +++ b/src/lib/kadm5/ChangeLog @@ -1,3 +1,12 @@ +1999-12-01 Ken Raeburn <raeburn@mit.edu> + + * logger.c (klog_vsyslog): Convert pid_t to long for printing. + +1999-11-30 Ken Raeburn <raeburn@mit.edu> + + * alt_prof.c (kadm5_get_config_params): Fix bug in direction of + test while walking through whitespace. Thanks to Matt Crawford. + 1999-10-26 Tom Yu <tlyu@mit.edu> * Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, diff --git a/src/lib/kadm5/alt_prof.c b/src/lib/kadm5/alt_prof.c index 0d67da313b..c4490de790 100644 --- a/src/lib/kadm5/alt_prof.c +++ b/src/lib/kadm5/alt_prof.c @@ -598,7 +598,7 @@ 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(*tp) && (tp > sp)) { *tp = '\0'; tp--; } diff --git a/src/lib/kadm5/logger.c b/src/lib/kadm5/logger.c index 606a4275d2..4f2ad20058 100644 --- a/src/lib/kadm5/logger.c +++ b/src/lib/kadm5/logger.c @@ -853,8 +853,8 @@ klog_vsyslog(priority, format, arglist) cp += 15; #endif /* HAVE_STRFTIME */ #ifdef VERBOSE_LOGS - sprintf(cp, " %s %s[%d](%s): ", - log_control.log_hostname, log_control.log_whoami, getpid(), + sprintf(cp, " %s %s[%ld](%s): ", + log_control.log_hostname, log_control.log_whoami, (long) getpid(), severity2string(priority)); #else sprintf(cp, " "); |