diff options
Diffstat (limited to 'networking/nc.c')
-rw-r--r-- | networking/nc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/nc.c b/networking/nc.c index b208f46c6..705b7356a 100644 --- a/networking/nc.c +++ b/networking/nc.c | |||
@@ -112,7 +112,7 @@ | |||
112 | 112 | ||
113 | static void timeout(int signum UNUSED_PARAM) | 113 | static void timeout(int signum UNUSED_PARAM) |
114 | { | 114 | { |
115 | bb_error_msg_and_die("timed out"); | 115 | bb_simple_error_msg_and_die("timed out"); |
116 | } | 116 | } |
117 | 117 | ||
118 | int nc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 118 | int nc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
@@ -211,7 +211,7 @@ int nc_main(int argc, char **argv) | |||
211 | accept_again: | 211 | accept_again: |
212 | cfd = accept(sfd, NULL, 0); | 212 | cfd = accept(sfd, NULL, 0); |
213 | if (cfd < 0) | 213 | if (cfd < 0) |
214 | bb_perror_msg_and_die("accept"); | 214 | bb_simple_perror_msg_and_die("accept"); |
215 | if (!execparam) | 215 | if (!execparam) |
216 | close(sfd); | 216 | close(sfd); |
217 | } else { | 217 | } else { |
@@ -260,7 +260,7 @@ int nc_main(int argc, char **argv) | |||
260 | int nread; | 260 | int nread; |
261 | 261 | ||
262 | if (safe_poll(pfds, 2, -1) < 0) | 262 | if (safe_poll(pfds, 2, -1) < 0) |
263 | bb_perror_msg_and_die("poll"); | 263 | bb_simple_perror_msg_and_die("poll"); |
264 | 264 | ||
265 | fdidx = 0; | 265 | fdidx = 0; |
266 | while (1) { | 266 | while (1) { |