diff options
Diffstat (limited to 'miscutils/rx.c')
-rw-r--r-- | miscutils/rx.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/miscutils/rx.c b/miscutils/rx.c index 41673b60e..4cc4913e6 100644 --- a/miscutils/rx.c +++ b/miscutils/rx.c | |||
@@ -21,18 +21,6 @@ | |||
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include "busybox.h" | 23 | #include "busybox.h" |
24 | #include <stdlib.h> | ||
25 | #include <stdarg.h> | ||
26 | #include <stdio.h> | ||
27 | #include <unistd.h> | ||
28 | #include <errno.h> | ||
29 | #include <termios.h> | ||
30 | #include <signal.h> | ||
31 | #include <sys/types.h> | ||
32 | #include <sys/stat.h> | ||
33 | #include <fcntl.h> | ||
34 | #include <string.h> | ||
35 | |||
36 | 24 | ||
37 | #define SOH 0x01 | 25 | #define SOH 0x01 |
38 | #define STX 0x02 | 26 | #define STX 0x02 |
@@ -274,8 +262,8 @@ int rx_main(int argc, char **argv) | |||
274 | bb_show_usage(); | 262 | bb_show_usage(); |
275 | 263 | ||
276 | fn = argv[1]; | 264 | fn = argv[1]; |
277 | ttyfd = bb_xopen3(CURRENT_TTY, O_RDWR, 0); | 265 | ttyfd = xopen3(CURRENT_TTY, O_RDWR, 0); |
278 | filefd = bb_xopen3(fn, O_RDWR|O_CREAT|O_TRUNC, 0666); | 266 | filefd = xopen3(fn, O_RDWR|O_CREAT|O_TRUNC, 0666); |
279 | 267 | ||
280 | if (tcgetattr(ttyfd, &tty) < 0) | 268 | if (tcgetattr(ttyfd, &tty) < 0) |
281 | bb_error_msg_and_die("%s: tcgetattr failed: %m\n", argv[0]); | 269 | bb_error_msg_and_die("%s: tcgetattr failed: %m\n", argv[0]); |