From c6eb82469de9e5f0a4f4a50b7af90b1b69c13b5e Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 21 Dec 1998 05:12:07 +0000 Subject: kill union wait; christos --- usr.bin/window/wwchild.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/window/wwchild.c') 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) { -- cgit v1.2.3