summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2005-05-11 02:41:39 +0000
committerjmallett <jmallett@FreeBSD.org>2005-05-11 02:41:39 +0000
commit72198c2a2f0a183cc57560c351004e07ea479674 (patch)
tree454949d14ff78f3f2097273d42c5f87e79abd8e2
parent593944093279bd4cf37205a2abbeed85fb71bd82 (diff)
downloadFreeBSD-src-72198c2a2f0a183cc57560c351004e07ea479674.zip
FreeBSD-src-72198c2a2f0a183cc57560c351004e07ea479674.tar.gz
Spell SHUT_RDWR as SHUT_RDWR not 1+1 as the how argument to shutdown(2).
-rw-r--r--libexec/rshd/rshd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c
index b203bc9..ec17251 100644
--- a/libexec/rshd/rshd.c
+++ b/libexec/rshd/rshd.c
@@ -267,7 +267,7 @@ doit(struct sockaddr *fromp)
if ((cc = read(STDIN_FILENO, &c, 1)) != 1) {
if (cc < 0)
syslog(LOG_NOTICE, "read: %m");
- shutdown(0, 1+1);
+ shutdown(0, SHUT_RDWR);
exit(1);
}
if (c == 0)
@@ -442,7 +442,7 @@ doit(struct sockaddr *fromp)
errno = 0;
cc = read(pv[0], buf, sizeof(buf));
if (cc <= 0) {
- shutdown(s, 1+1);
+ shutdown(s, SHUT_RDWR);
FD_CLR(pv[0], &readfrom);
} else {
(void)write(s, buf, cc);
OpenPOWER on IntegriCloud