diff options
author | Mike Pechkin <mpech@cvs.openbsd.org> | 2002-06-12 06:07:18 +0000 |
---|---|---|
committer | Mike Pechkin <mpech@cvs.openbsd.org> | 2002-06-12 06:07:18 +0000 |
commit | 2c5359ee4336522c89649a8e017da3fdf87fa8bd (patch) | |
tree | 60aa07e4178dd0840349fe830f118d2cb64a1c6c /usr.bin/newsyslog | |
parent | c22dc40df755f025740d14e001bb8599cf4a72c5 (diff) |
a real pid_t cleanup.
espie@ ok for make/,
deraadt@ one extra eye,
millert@ ok
Diffstat (limited to 'usr.bin/newsyslog')
-rw-r--r-- | usr.bin/newsyslog/newsyslog.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/newsyslog/newsyslog.c b/usr.bin/newsyslog/newsyslog.c index a11cfd62a27..e6bec0c2f2a 100644 --- a/usr.bin/newsyslog/newsyslog.c +++ b/usr.bin/newsyslog/newsyslog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: newsyslog.c,v 1.43 2002/02/16 21:27:50 millert Exp $ */ +/* $OpenBSD: newsyslog.c,v 1.44 2002/06/12 06:07:16 mpech Exp $ */ /* * Copyright (c) 1999 Todd C. Miller <Todd.Miller@courtesan.com> @@ -88,7 +88,7 @@ provided "as is" without express or implied warranty. */ #ifndef lint -static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.43 2002/02/16 21:27:50 millert Exp $"; +static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.44 2002/06/12 06:07:16 mpech Exp $"; #endif /* not lint */ #ifndef CONF @@ -354,7 +354,7 @@ send_signal(pidfile, signal) if (err) warnx("%s pid file: %s", err, pidfile); else if (noaction) - (void)printf("kill -%s %u\n", sys_signame[signal], pid); + (void)printf("kill -%s %ld\n", sys_signame[signal], (long)pid); else if (kill(pid, signal)) warnx("warning - could not send SIG%s to daemon", sys_signame[signal]); @@ -715,8 +715,8 @@ log_trim(log) if ((f = fopen(log, "a")) == NULL) return(-1); - (void)fprintf(f, "%s %s newsyslog[%u]: logfile turned over\n", - daytime, hostname, getpid()); + (void)fprintf(f, "%s %s newsyslog[%ld]: logfile turned over\n", + daytime, hostname, (long)getpid()); if (fclose(f) == EOF) err(1, "log_trim: fclose"); return(0); |