summaryrefslogtreecommitdiffhomepage
path: root/src/log.c
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2001-06-06 19:32:51 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2001-06-06 19:32:51 +0000
commitff97b38603e10338aa0241b20cac478a5ca508fc (patch)
tree42c336619c8ea0bb38f090bb423f2366461ffcc2 /src/log.c
parentf64578eef1f88dea98bde64145c7d8c4112ec178 (diff)
Explictly cast getpid() to a long int to remove the compiler warnings on
various machines.
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/log.c b/src/log.c
index a24aebd..f881b1c 100644
--- a/src/log.c
+++ b/src/log.c
@@ -1,4 +1,4 @@
-/* $Id: log.c,v 1.7 2001-06-05 16:08:15 rjkaes Exp $
+/* $Id: log.c,v 1.8 2001-06-06 19:32:51 rjkaes Exp $
*
* Logs the various messages which tinyproxy produces to either a log file or
* the syslog daemon. Not much to it...
@@ -90,8 +90,8 @@ void log_message(short int level, char *fmt, ...)
if (!(cf = config.logf))
cf = stderr;
- fprintf(cf, "%-9s %s [%ul]: ", syslog_level[level],
- time_string, getpid());
+ fprintf(cf, "%-9s %s [%ld]: ", syslog_level[level],
+ time_string, (long int)getpid());
vfprintf(cf, fmt, args);
fprintf(cf, "\n");
fflush(cf);