aboutsummaryrefslogtreecommitdiff
path: root/console-tools/chvt.c
diff options
context:
space:
mode:
Diffstat (limited to 'console-tools/chvt.c')
-rw-r--r--console-tools/chvt.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c
index e8761d523..86d3f2ddb 100644
--- a/console-tools/chvt.c
+++ b/console-tools/chvt.c
@@ -26,9 +26,7 @@ int chvt_main(int argc, char **argv)
26 26
27 fd = get_console_fd(); 27 fd = get_console_fd();
28 num = xatoul_range(argv[1], 1, 63); 28 num = xatoul_range(argv[1], 1, 63);
29 if ((-1 == ioctl(fd, VT_ACTIVATE, num)) 29 xioctl(fd, VT_ACTIVATE, (void *)num);
30 || (-1 == ioctl(fd, VT_WAITACTIVE, num))) { 30 xioctl(fd, VT_WAITACTIVE, (void *)num);
31 bb_perror_msg_and_die("ioctl");
32 }
33 return EXIT_SUCCESS; 31 return EXIT_SUCCESS;
34} 32}