summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2001-06-02 03:38:02 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2001-06-02 03:38:02 +0000
commit3dfc5e84cc38eb6636f2d6ec0cbec8af5dace025 (patch)
tree3570df30f09410a8272692df1562c47c3ae7e161 /src
parent118f4fd9dd78f9360d5baf4d7a2a798ccdf1df02 (diff)
downloadtinyproxy-3dfc5e84cc38eb6636f2d6ec0cbec8af5dace025.tar.gz
tinyproxy-3dfc5e84cc38eb6636f2d6ec0cbec8af5dace025.zip
Fixed a type problem with fprintf in log_message() when logging the PID.
Diffstat (limited to 'src')
-rw-r--r--src/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/log.c b/src/log.c
index cf0e207..efc1d63 100644
--- a/src/log.c
+++ b/src/log.c
@@ -1,4 +1,4 @@
-/* $Id: log.c,v 1.5 2001-06-02 03:09:27 rjkaes Exp $
+/* $Id: log.c,v 1.6 2001-06-02 03:38:02 rjkaes Exp $
*
* Logs the various messages which tinyproxy produces to either a log file or
* the syslog daemon. Not much to it...
@@ -90,7 +90,7 @@ void log_message(short int level, char *fmt, ...)
if (!(cf = config.logf))
cf = stderr;
- fprintf(cf, "%-9s %s [%d]: ", syslog_level[level],
+ fprintf(cf, "%-9s %s [%u]: ", syslog_level[level],
time_string, getpid());
vfprintf(cf, fmt, args);
fprintf(cf, "\n");