[git commit] nc: use symbolic SHUT_WR instead of literal 1

Denys Vlasenko vda.linux at googlemail.com
Sun Jul 28 19:08:37 UTC 2013


commit: http://git.busybox.net/busybox/commit/?id=ca54b662e7a058a1f687da2eac6752590a9ed2ee
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/nc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/networking/nc.c b/networking/nc.c
index 126bec9..2f9e174 100644
--- 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;


More information about the busybox-cvs mailing list