* logger.c (klog_vsyslog): Convert pid_t to long for printing
authorKen Raeburn <raeburn@mit.edu>
Mon, 6 Dec 1999 21:54:10 +0000 (21:54 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 6 Dec 1999 21:54:10 +0000 (21:54 +0000)
* 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
src/lib/kadm5/alt_prof.c
src/lib/kadm5/logger.c

index ef7eee2505074241d584ec7dc0febd901e4e6ab2..2eb05a8bcf7ce10e553add651d9b949a15acfb5c 100644 (file)
@@ -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,
index 0d67da313b9ff7a0f57743e7df6be5dbf13a0686..c4490de7904cb84891915bfb5b4f10dd84a8011d 100644 (file)
@@ -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--;
                   }
index 606a4275d27cff51b9bdc1ee8102c9942cf54ce4..4f2ad200581f3ba45afaeaf88fcb80793b0ecb0b 100644 (file)
@@ -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, " ");