diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2003-03-19 09:13:01 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2003-03-19 09:13:01 +0000 |
commit | cad5364599eb5062d59e0c397ed638ddd61a8d5d (patch) | |
tree | a318d0f03aa076c74b576ea45dc543a5669e8e91 /console-tools/chvt.c | |
parent | e01f9662a5bd5d91be4f6b3941b57fff73cd5af1 (diff) | |
download | busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.gz busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.bz2 busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.zip |
Major coreutils update.
Diffstat (limited to 'console-tools/chvt.c')
-rw-r--r-- | console-tools/chvt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c index 8136f1c15..11e1078b7 100644 --- a/console-tools/chvt.c +++ b/console-tools/chvt.c | |||
@@ -23,13 +23,13 @@ int chvt_main(int argc, char **argv) | |||
23 | int fd, num; | 23 | int fd, num; |
24 | 24 | ||
25 | if ((argc != 2) || (**(argv + 1) == '-')) | 25 | if ((argc != 2) || (**(argv + 1) == '-')) |
26 | show_usage(); | 26 | bb_show_usage(); |
27 | fd = get_console_fd(); | 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 | bb_perror_msg_and_die("VT_ACTIVATE"); |
31 | if (ioctl(fd, VT_WAITACTIVE, num)) | 31 | if (ioctl(fd, VT_WAITACTIVE, num)) |
32 | perror_msg_and_die("VT_WAITACTIVE"); | 32 | bb_perror_msg_and_die("VT_WAITACTIVE"); |
33 | return EXIT_SUCCESS; | 33 | return EXIT_SUCCESS; |
34 | } | 34 | } |
35 | 35 | ||