From 179535282c21bb601c99db6a4d2f873f58df91ce Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 6 Dec 1999 21:54:10 +0000 Subject: [PATCH] * 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 --- src/lib/kadm5/ChangeLog | 9 +++++++++ src/lib/kadm5/alt_prof.c | 2 +- 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 ef7eee250..2eb05a8bc 100644 --- a/src/lib/kadm5/ChangeLog +++ b/src/lib/kadm5/ChangeLog @@ -1,3 +1,12 @@ +1999-12-01 Ken Raeburn + + * logger.c (klog_vsyslog): Convert pid_t to long for printing. + +1999-11-30 Ken Raeburn + + * 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 * 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 0d67da313..c4490de79 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 606a4275d..4f2ad2005 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, " "); -- 2.26.2