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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c
index 252aed740..cba5b4014 100644
--- a/console-tools/chvt.c
+++ b/console-tools/chvt.c
@@ -44,8 +44,8 @@ int chvt_main(int argc, char **argv)
44 44
45 fd = get_console_fd(); 45 fd = get_console_fd();
46 num = bb_xgetlarg(argv[1], 10, 0, INT_MAX); 46 num = bb_xgetlarg(argv[1], 10, 0, INT_MAX);
47 if((-1 == ioctl(fd, VT_ACTIVATE, num)) || 47 if ((-1 == ioctl(fd, VT_ACTIVATE, num))
48 (-1 == ioctl(fd, VT_WAITACTIVE, num))) { 48 || (-1 == ioctl(fd, VT_WAITACTIVE, num))) {
49 bb_perror_msg_and_die("ioctl"); 49 bb_perror_msg_and_die("ioctl");
50 } 50 }
51 return EXIT_SUCCESS; 51 return EXIT_SUCCESS;