aboutsummaryrefslogtreecommitdiff
path: root/console-tools/setlogcons.c
diff options
context:
space:
mode:
Diffstat (limited to 'console-tools/setlogcons.c')
-rw-r--r--console-tools/setlogcons.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/console-tools/setlogcons.c b/console-tools/setlogcons.c
index 62a654777..6667eb622 100644
--- a/console-tools/setlogcons.c
+++ b/console-tools/setlogcons.c
@@ -9,10 +9,6 @@
9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
10 */ 10 */
11 11
12#include <stdio.h>
13#include <stdlib.h>
14#include <fcntl.h>
15#include <sys/ioctl.h>
16#include "busybox.h" 12#include "busybox.h"
17 13
18extern int setlogcons_main(int argc, char **argv) 14extern int setlogcons_main(int argc, char **argv)
@@ -28,7 +24,7 @@ extern int setlogcons_main(int argc, char **argv)
28 if (argc == 2) 24 if (argc == 2)
29 arg.subarg = atoi(argv[1]); 25 arg.subarg = atoi(argv[1]);
30 26
31 if (ioctl(bb_xopen(VC_1, O_RDONLY), TIOCLINUX, &arg)) 27 if (ioctl(xopen(VC_1, O_RDONLY), TIOCLINUX, &arg))
32 bb_perror_msg_and_die("TIOCLINUX");; 28 bb_perror_msg_and_die("TIOCLINUX");;
33 29
34 return 0; 30 return 0;