]> mj.ucw.cz Git - libucw.git/commitdiff
Use int instead of pid_t. At the first glance, this looks like a step backward,
authorMartin Mares <mj@ucw.cz>
Thu, 22 Jan 2004 11:21:36 +0000 (11:21 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 22 Jan 2004 11:21:36 +0000 (11:21 +0000)
but since we use the variable for printing with a "%d" format-string anyway
and there is no way how to get the right format string for pid_t, it's better
this way.

lib/log.c

index 159383665988191ca6371e80c3c6bbbf20a69a84..2f6e9fd57ecf05397fe9b936677da7d3112bd09c 100644 (file)
--- a/lib/log.c
+++ b/lib/log.c
@@ -20,7 +20,7 @@
 
 static char log_progname[32], *log_name_patt, *log_name;
 char *log_title;
-static pid_t log_pid;
+static int log_pid;
 static int log_params;
 static int log_name_size;
 static int log_switching;