From 13ee8a54b862cc0dfd91f39c641da06af64cc2b2 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sun, 26 May 2002 09:24:35 +0000 Subject: pid_t cleanup --- lib/libc/gen/syslog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/gen/syslog.c') 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 @@ -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) { -- cgit v1.2.3-59-g8ed1b