summaryrefslogtreecommitdiff
path: root/usr.bin/window/wwchild.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-12-21 05:12:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-12-21 05:12:07 +0000
commitc6eb82469de9e5f0a4f4a50b7af90b1b69c13b5e (patch)
tree242748128740d51b93431a03373f807b0b933dda /usr.bin/window/wwchild.c
parent71b62090681de55b44b7ed1af12b54949397b6a3 (diff)
kill union wait; christos
Diffstat (limited to 'usr.bin/window/wwchild.c')
-rw-r--r--usr.bin/window/wwchild.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/window/wwchild.c b/usr.bin/window/wwchild.c
index 218feefcade..62b053825bf 100644
--- a/usr.bin/window/wwchild.c
+++ b/usr.bin/window/wwchild.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wwchild.c,v 1.3 1997/02/25 00:04:41 downsj Exp $ */
+/* $OpenBSD: wwchild.c,v 1.4 1998/12/21 05:12:06 deraadt Exp $ */
/* $NetBSD: wwchild.c,v 1.3 1995/09/28 10:35:13 tls Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)wwchild.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwchild.c,v 1.3 1997/02/25 00:04:41 downsj Exp $";
+static char rcsid[] = "$OpenBSD: wwchild.c,v 1.4 1998/12/21 05:12:06 deraadt Exp $";
#endif
#endif /* not lint */
@@ -55,13 +55,13 @@ wwchild()
extern errno;
int olderrno;
register struct ww **wp;
- union wait w;
+ int w;
int pid;
char collected = 0;
olderrno = errno;
while ((pid =
- wait3((int *)&w, WNOHANG|WUNTRACED, (struct rusage *)0)) > 0) {
+ wait3(&w, WNOHANG|WUNTRACED, (struct rusage *)0)) > 0) {
for (wp = wwindex; wp < &wwindex[NWW]; wp++) {
if (*wp && (*wp)->ww_state == WWS_HASPROC
&& (*wp)->ww_pid == pid) {