aboutsummaryrefslogtreecommitdiff
path: root/console-tools/chvt.c
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-03-10 23:16:25 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-03-10 23:16:25 +0000
commit1b6354499a5b4ea9967967c93553a3ebf67a6f8f (patch)
tree50e2c88bee71b9c4da3b54f951d337c112a85c03 /console-tools/chvt.c
parent07ea853040a1240d40fefe5bb871a5c3c98c77a6 (diff)
downloadbusybox-w32-1b6354499a5b4ea9967967c93553a3ebf67a6f8f.tar.gz
busybox-w32-1b6354499a5b4ea9967967c93553a3ebf67a6f8f.tar.bz2
busybox-w32-1b6354499a5b4ea9967967c93553a3ebf67a6f8f.zip
Cleanup patches from tito.
git-svn-id: svn://busybox.net/trunk/busybox@14515 69ca8d6d-28ef-0310-b511-8ec308f3f277
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;