diff options
author | mjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-03-19 09:13:01 +0000 |
---|---|---|
committer | mjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-03-19 09:13:01 +0000 |
commit | e901c15d890dbbdce4c086963cb1513653fc46b5 (patch) | |
tree | a318d0f03aa076c74b576ea45dc543a5669e8e91 /console-tools/chvt.c | |
parent | 40758c00616c3b2c85d83eb4afdeb04b1f65c9f1 (diff) | |
download | busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.gz busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.bz2 busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.zip |
Major coreutils update.
git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 | ||