projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad546ec
)
nc: use symbolic SHUT_WR instead of literal 1
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 28 Jul 2013 19:08:37 +0000
(21:08 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 28 Jul 2013 19:08:37 +0000
(21:08 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/nc.c
patch
|
blob
|
history
diff --git
a/networking/nc.c
b/networking/nc.c
index
126bec9
..
2f9e174
100644
(file)
--- a/
networking/nc.c
+++ b/
networking/nc.c
@@
-261,7
+261,7
@@
int nc_main(int argc, char **argv)
if (nread < 1) {
/* Close outgoing half-connection so they get EOF,
* but leave incoming alone so we can see response */
- shutdown(cfd,
1
);
+ shutdown(cfd,
SHUT_WR
);
FD_CLR(STDIN_FILENO, &readfds);
}
ofd = cfd;