diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-05 10:17:08 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-05 10:17:08 +0000 |
commit | c2a198d4d1552b349750a13d2c22486e99ef6270 (patch) | |
tree | 20db60b3a787cd3152160fb60206922fd5eb18ed /miscutils/rx.c | |
parent | d8cf793135eac928e653eb5178894a611aa27837 (diff) | |
download | busybox-w32-c2a198d4d1552b349750a13d2c22486e99ef6270.tar.gz busybox-w32-c2a198d4d1552b349750a13d2c22486e99ef6270.tar.bz2 busybox-w32-c2a198d4d1552b349750a13d2c22486e99ef6270.zip |
build system overhaul
git-svn-id: svn://busybox.net/trunk/busybox@16307 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'miscutils/rx.c')
-rw-r--r-- | miscutils/rx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/miscutils/rx.c b/miscutils/rx.c index 52a76bfd9..00951b711 100644 --- a/miscutils/rx.c +++ b/miscutils/rx.c | |||
@@ -266,7 +266,7 @@ int rx_main(int argc, char **argv) | |||
266 | filefd = xopen3(fn, O_RDWR|O_CREAT|O_TRUNC, 0666); | 266 | filefd = xopen3(fn, O_RDWR|O_CREAT|O_TRUNC, 0666); |
267 | 267 | ||
268 | if (tcgetattr(ttyfd, &tty) < 0) | 268 | if (tcgetattr(ttyfd, &tty) < 0) |
269 | bb_perror_msg_and_die("%s: tcgetattr failed", argv[0]); | 269 | bb_perror_msg_and_die("tcgetattr"); |
270 | 270 | ||
271 | orig_tty = tty; | 271 | orig_tty = tty; |
272 | 272 | ||
@@ -284,8 +284,7 @@ int rx_main(int argc, char **argv) | |||
284 | tcsetattr(ttyfd, TCSAFLUSH, &orig_tty); | 284 | tcsetattr(ttyfd, TCSAFLUSH, &orig_tty); |
285 | 285 | ||
286 | if (n < 0) | 286 | if (n < 0) |
287 | bb_error_msg_and_die("\n%s: receive failed:\n %s", | 287 | bb_error_msg_and_die("\nreceive failed:\n %s", error_buf); |
288 | argv[0], error_buf); | ||
289 | 288 | ||
290 | bb_fflush_stdout_and_exit(EXIT_SUCCESS); | 289 | bb_fflush_stdout_and_exit(EXIT_SUCCESS); |
291 | } | 290 | } |