summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/syslog.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-05-26 09:24:35 +0000
committerderaadt <deraadt@openbsd.org>2002-05-26 09:24:35 +0000
commit13ee8a54b862cc0dfd91f39c641da06af64cc2b2 (patch)
treecc15bdee8a5aa91ccbc87bc82fc9585d9342b76d /lib/libc/gen/syslog.c
parent- CPU_MAXID and CPU_CHIPSET were swapped in cpu.h (diff)
downloadwireguard-openbsd-13ee8a54b862cc0dfd91f39c641da06af64cc2b2.tar.xz
wireguard-openbsd-13ee8a54b862cc0dfd91f39c641da06af64cc2b2.zip
pid_t cleanup
Diffstat (limited to 'lib/libc/gen/syslog.c')
-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) {