diff options
author | Rob Landley <rob@landley.net> | 2006-03-10 23:16:25 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-03-10 23:16:25 +0000 |
commit | ead19306f5d6d5d5ef49165aa518e525de8e84b2 (patch) | |
tree | 50e2c88bee71b9c4da3b54f951d337c112a85c03 /console-tools/chvt.c | |
parent | bc68cd14ccaebc17e7e03a08e51fddfb91007624 (diff) | |
download | busybox-w32-ead19306f5d6d5d5ef49165aa518e525de8e84b2.tar.gz busybox-w32-ead19306f5d6d5d5ef49165aa518e525de8e84b2.tar.bz2 busybox-w32-ead19306f5d6d5d5ef49165aa518e525de8e84b2.zip |
Cleanup patches from tito.
Diffstat (limited to 'console-tools/chvt.c')
-rw-r--r-- | console-tools/chvt.c | 4 |
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; |