diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-07-28 21:08:37 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-07-28 21:08:37 +0200 |
commit | ca54b662e7a058a1f687da2eac6752590a9ed2ee (patch) | |
tree | 837d9c3d1b3be9dd242611c07c87312e4443a929 | |
parent | ad546ec6062e47f08352ff2c4038aba3479bfb82 (diff) | |
download | busybox-w32-ca54b662e7a058a1f687da2eac6752590a9ed2ee.tar.gz busybox-w32-ca54b662e7a058a1f687da2eac6752590a9ed2ee.tar.bz2 busybox-w32-ca54b662e7a058a1f687da2eac6752590a9ed2ee.zip |
nc: use symbolic SHUT_WR instead of literal 1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/nc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/nc.c b/networking/nc.c index 126bec906..2f9e17466 100644 --- a/networking/nc.c +++ b/networking/nc.c | |||
@@ -261,7 +261,7 @@ int nc_main(int argc, char **argv) | |||
261 | if (nread < 1) { | 261 | if (nread < 1) { |
262 | /* Close outgoing half-connection so they get EOF, | 262 | /* Close outgoing half-connection so they get EOF, |
263 | * but leave incoming alone so we can see response */ | 263 | * but leave incoming alone so we can see response */ |
264 | shutdown(cfd, 1); | 264 | shutdown(cfd, SHUT_WR); |
265 | FD_CLR(STDIN_FILENO, &readfds); | 265 | FD_CLR(STDIN_FILENO, &readfds); |
266 | } | 266 | } |
267 | ofd = cfd; | 267 | ofd = cfd; |