diff options
Diffstat (limited to 'console-tools/setconsole.c')
-rw-r--r-- | console-tools/setconsole.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/console-tools/setconsole.c b/console-tools/setconsole.c index 79a4313f0..71fe928da 100644 --- a/console-tools/setconsole.c +++ b/console-tools/setconsole.c | |||
@@ -7,13 +7,6 @@ | |||
7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <sys/ioctl.h> | ||
11 | #include <sys/stat.h> | ||
12 | #include <sys/types.h> | ||
13 | #include <fcntl.h> | ||
14 | #include <stdio.h> | ||
15 | #include <getopt.h> /* struct option */ | ||
16 | |||
17 | #include "busybox.h" | 10 | #include "busybox.h" |
18 | 11 | ||
19 | #if ENABLE_FEATURE_SETCONSOLE_LONG_OPTIONS | 12 | #if ENABLE_FEATURE_SETCONSOLE_LONG_OPTIONS |
@@ -47,7 +40,7 @@ int setconsole_main(int argc, char **argv) | |||
47 | device = CONSOLE_DEV; | 40 | device = CONSOLE_DEV; |
48 | } | 41 | } |
49 | 42 | ||
50 | if (-1 == ioctl(bb_xopen(device, O_RDONLY), TIOCCONS)) { | 43 | if (-1 == ioctl(xopen(device, O_RDONLY), TIOCCONS)) { |
51 | bb_perror_msg_and_die("TIOCCONS"); | 44 | bb_perror_msg_and_die("TIOCCONS"); |
52 | } | 45 | } |
53 | return EXIT_SUCCESS; | 46 | return EXIT_SUCCESS; |