summaryrefslogtreecommitdiff
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-26 09:29:03 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-26 09:29:03 +0000
commit0a6d77317c9ca30edbf8887482233697b5ec7799 (patch)
treec962570119c7708fa04aeae7daa5482981ae4da3 /lib/libc/gen
parent83a6c6911f8ace4bb28af6cf0f98e8a40cab9848 (diff)
pid_t cleanup
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/syslog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/syslog.c b/lib/libc/gen/syslog.c
index a10ecf37702..892a0f3a006 100644
--- a/lib/libc/gen/syslog.c
+++ b/lib/libc/gen/syslog.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: syslog.c,v 1.16 2002/02/19 19:39:36 millert Exp $";
+static char rcsid[] = "$OpenBSD: syslog.c,v 1.17 2002/05/26 09:29:02 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -206,7 +206,7 @@ vsyslog_r(pri, data, fmt, ap)
DEC();
}
if (data->log_stat & LOG_PID) {
- prlen = snprintf(p, tbuf_left, "[%d]", getpid());
+ prlen = snprintf(p, tbuf_left, "[%ld]", (long)getpid());
DEC();
}
if (data->log_tag != NULL) {