projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ANSI
[unix-history]
/
usr
/
src
/
usr.bin
/
window
/
wwchild.c
diff --git
a/usr/src/usr.bin/window/wwchild.c
b/usr/src/usr.bin/window/wwchild.c
index
080e459
..
1f07150
100644
(file)
--- a/
usr/src/usr.bin/window/wwchild.c
+++ b/
usr/src/usr.bin/window/wwchild.c
@@
-9,7
+9,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char sccsid[] = "@(#)wwchild.c 3.1
4
(Berkeley) %G%";
+static char sccsid[] = "@(#)wwchild.c 3.1
5
(Berkeley) %G%";
#endif /* not lint */
#include "ww.h"
#endif /* not lint */
#include "ww.h"
@@
-27,7
+27,8
@@
wwchild()
char collected = 0;
olderrno = errno;
char collected = 0;
olderrno = errno;
- while ((pid = wait3(&w, WNOHANG|WUNTRACED, (struct rusage *)0)) > 0) {
+ while ((pid =
+ wait3((int *)&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) {
for (wp = wwindex; wp < &wwindex[NWW]; wp++) {
if (*wp && (*wp)->ww_state == WWS_HASPROC
&& (*wp)->ww_pid == pid) {