diff options
| author | Mike Barcroft <mike@FreeBSD.org> | 2002-06-03 23:13:11 +0000 |
|---|---|---|
| committer | Mike Barcroft <mike@FreeBSD.org> | 2002-06-03 23:13:11 +0000 |
| commit | cb263c35947b04e5f9f54202f6761069e2663931 (patch) | |
| tree | a21f8895cdfa7f50dfa0df9ee4a19954b3330375 /usr.bin/script/script.c | |
| parent | 494273bead0b4f3413ccdd998213d648a533a640 (diff) | |
Notes
Diffstat (limited to 'usr.bin/script/script.c')
| -rw-r--r-- | usr.bin/script/script.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index 0019a46280f5..c58923980372 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -209,11 +209,11 @@ usage() void finish() { - int die, e, pid; - union wait status; + pid_t pid; + int die, e, status; die = e = 0; - while ((pid = wait3((int *)&status, WNOHANG, 0)) > 0) + while ((pid = wait3(&status, WNOHANG, 0)) > 0) if (pid == child) { die = 1; if (WIFEXITED(status)) |
