commit | ca54b662e7a058a1f687da2eac6752590a9ed2ee | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Sun Jul 28 21:08:37 2013 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Sun Jul 28 21:08:37 2013 +0200 |
tree | 837d9c3d1b3be9dd242611c07c87312e4443a929 | |
parent | ad546ec6062e47f08352ff2c4038aba3479bfb82 [diff] [blame] |
nc: use symbolic SHUT_WR instead of literal 1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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 @@ 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;