summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-07-06 10:07:04 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-07-06 10:07:04 +0000
commitb23f7f63751c9e7b6860780e1895e79934424975 (patch)
tree2de464152e81824bf7817c5054eb1b2c8e0d0604 /usr.sbin
parent1432a11857acf057ec0f3affa61c8e860868fcd6 (diff)
union wait -> int
wait3 -> waitpid (for portability)
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/syslogd/syslogd.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
index 9c3a9c5b755..5e1292eadff 100644
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -1,3 +1,5 @@
+/* $OpenBSD: syslogd.c,v 1.33 1999/07/06 10:07:03 millert Exp $ */
+
/*
* Copyright (c) 1983, 1988, 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -38,8 +40,11 @@ static char copyright[] =
#endif /* not lint */
#ifndef lint
-/*static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";*/
-static char rcsid[] = "$NetBSD: syslogd.c,v 1.5 1996/01/02 17:48:41 perry Exp $";
+#if 0
+static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";
+#else
+static char rcsid[] = "$OpenBSD: syslogd.c,v 1.33 1999/07/06 10:07:03 millert Exp $";
+#endif
#endif /* not lint */
/*
@@ -825,10 +830,10 @@ void
reapchild(signo)
int signo;
{
- union wait status;
+ int status;
int save_errno = errno;
- while (wait3((int *)&status, WNOHANG, (struct rusage *)NULL) > 0)
+ while (waitpid(-1, &status, WNOHANG) > 0)
;
errno = save_errno;
}