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/rsh/rsh.c | |
parent | c22dc40df755f025740d14e001bb8599cf4a72c5 (diff) |
a real pid_t cleanup.
espie@ ok for make/,
deraadt@ one extra eye,
millert@ ok
Diffstat (limited to 'usr.bin/rsh/rsh.c')
-rw-r--r-- | usr.bin/rsh/rsh.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/rsh/rsh.c b/usr.bin/rsh/rsh.c index 1e7c54a69f2..2489bb27d41 100644 --- a/usr.bin/rsh/rsh.c +++ b/usr.bin/rsh/rsh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsh.c,v 1.27 2002/06/09 05:50:33 hin Exp $ */ +/* $OpenBSD: rsh.c,v 1.28 2002/06/12 06:07:16 mpech Exp $ */ /*- * Copyright (c) 1983, 1990 The Regents of the University of California. @@ -41,7 +41,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)rsh.c 5.24 (Berkeley) 7/1/91";*/ -static char rcsid[] = "$OpenBSD: rsh.c,v 1.27 2002/06/09 05:50:33 hin Exp $"; +static char rcsid[] = "$OpenBSD: rsh.c,v 1.28 2002/06/12 06:07:16 mpech Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -100,9 +100,10 @@ main(argc, argv) struct passwd *pw; struct servent *sp; sigset_t mask, omask; - int argoff, asrsh, ch, dflag, nflag, one, pid = 0, rem, uid; + int argoff, asrsh, ch, dflag, nflag, one, rem, uid; char *p; char *args, *host, *user, *copyargs(); + pid_t pid = 0; void sendsig(); argoff = asrsh = dflag = nflag = 0; @@ -332,8 +333,9 @@ try_connect: void talk(nflag, omask, pid, rem) - int nflag, pid; + int nflag; sigset_t *omask; + pid_t pid; int rem; { int cc, wc; |