diff options
author | Mike Pechkin <mpech@cvs.openbsd.org> | 2002-06-12 06:07:18 +0000 |
---|---|---|
committer | Mike Pechkin <mpech@cvs.openbsd.org> | 2002-06-12 06:07:18 +0000 |
commit | 2c5359ee4336522c89649a8e017da3fdf87fa8bd (patch) | |
tree | 60aa07e4178dd0840349fe830f118d2cb64a1c6c /usr.bin/learn | |
parent | c22dc40df755f025740d14e001bb8599cf4a72c5 (diff) |
a real pid_t cleanup.
espie@ ok for make/,
deraadt@ one extra eye,
millert@ ok
Diffstat (limited to 'usr.bin/learn')
-rw-r--r-- | usr.bin/learn/src/learn.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/learn/src/learn.c b/usr.bin/learn/src/learn.c index 42227bdcc31..56ce44b4fca 100644 --- a/usr.bin/learn/src/learn.c +++ b/usr.bin/learn/src/learn.c @@ -2,7 +2,7 @@ * learn, from V7 UNIX: one of the earliest Computer Based Training (CBT) * programs still in existence. * - * $OpenBSD: learn.c,v 1.7 2001/11/19 19:02:14 mpech Exp $ + * $OpenBSD: learn.c,v 1.8 2002/06/12 06:07:15 mpech Exp $ */ /**************************************************************** @@ -691,7 +691,8 @@ char *s; int system(const char *s) { - int status, pid, w; + int status; + pid_t pid, w; void (*istat)(int), (*qstat)(int); istat = signal(SIGINT, SIG_IGN); /* XXX should use sigaction() */ @@ -1025,7 +1026,8 @@ int n; { /* this routine does not use 'system' because it wants interrupts turned off */ - int retval, pid, pidw; + int retval; + pid_t pid; signal(SIGINT, SIG_IGN); chdir(".."); @@ -1039,6 +1041,6 @@ int n; printf("Bye.\n"); /* not only does this reassure user but it stalls for time while deleting directory */ fflush(stdout); - /* printf("Wantd %d got %d val %d\n",pid, pidw, retval); */ + /* printf("Wantd %ld got %ld val %d\n", (long)pid, (long)pidw, retval); */ exit(n); } |