aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/rsh
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2005-05-11 02:49:03 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2005-05-11 02:49:03 +0000
commite8b92d55b66947977ee17515b4827cb70fcb1e13 (patch)
tree90fbade19079fe08a0eb211648532505a82330dd /usr.bin/rsh
parentbf6b7d84fdd0d1d17e88ca9c44f8228d638b15df (diff)
downloadsrc-e8b92d55b66947977ee17515b4827cb70fcb1e13.tar.gz
src-e8b92d55b66947977ee17515b4827cb70fcb1e13.zip
Spell 1 as SHUT_WR in argument to shutdown(2).
Notes
Notes: svn path=/head/; revision=146078
Diffstat (limited to 'usr.bin/rsh')
-rw-r--r--usr.bin/rsh/rsh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rsh/rsh.c b/usr.bin/rsh/rsh.c
index 4a2f0dedd8d9..51aa24b7218c 100644
--- a/usr.bin/rsh/rsh.c
+++ b/usr.bin/rsh/rsh.c
@@ -222,7 +222,7 @@ main(int argc, char *argv[])
err(1, "fork");
}
else
- (void)shutdown(rem, 1);
+ (void)shutdown(rem, SHUT_WR);
(void)ioctl(rfd2, FIONBIO, &one);
(void)ioctl(rem, FIONBIO, &one);
@@ -277,7 +277,7 @@ rewrite:
goto reread;
goto rewrite;
done:
- (void)shutdown(rem, 1);
+ (void)shutdown(rem, SHUT_WR);
exit(0);
}