aboutsummaryrefslogtreecommitdiff
path: root/console-tools/chvt.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-09-16 06:22:25 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-09-16 06:22:25 +0000
commit338268d09fa2c32ee8c8da0525b366315c4a59c6 (patch)
tree8a08f41faae7672a634f32234dee4b5308cda39c /console-tools/chvt.c
parenta00029afbd04ad33db848f5a20d385f9e4f80800 (diff)
downloadbusybox-w32-338268d09fa2c32ee8c8da0525b366315c4a59c6.tar.gz
busybox-w32-338268d09fa2c32ee8c8da0525b366315c4a59c6.tar.bz2
busybox-w32-338268d09fa2c32ee8c8da0525b366315c4a59c6.zip
Apply vodz' last_patch52
git-svn-id: svn://busybox.net/trunk/busybox@5496 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'console-tools/chvt.c')
-rw-r--r--console-tools/chvt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c
index c76e9c780..8136f1c15 100644
--- a/console-tools/chvt.c
+++ b/console-tools/chvt.c
@@ -24,7 +24,7 @@ int chvt_main(int argc, char **argv)
24 24
25 if ((argc != 2) || (**(argv + 1) == '-')) 25 if ((argc != 2) || (**(argv + 1) == '-'))
26 show_usage(); 26 show_usage();
27 fd = get_console_fd("/dev/console"); 27 fd = get_console_fd();
28 num = atoi(argv[1]); 28 num = atoi(argv[1]);
29 if (ioctl(fd, VT_ACTIVATE, num)) 29 if (ioctl(fd, VT_ACTIVATE, num))
30 perror_msg_and_die("VT_ACTIVATE"); 30 perror_msg_and_die("VT_ACTIVATE");