=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/window/Attic/wwchild.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/window/Attic/wwchild.c 1997/02/25 00:04:41 1.3 +++ src/usr.bin/window/Attic/wwchild.c 1998/12/21 05:12:06 1.4 @@ -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 @@ 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) {