diff options
Diffstat (limited to 'console-tools/deallocvt.c')
-rw-r--r-- | console-tools/deallocvt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c index 08a9d2122..00ddf4236 100644 --- a/console-tools/deallocvt.c +++ b/console-tools/deallocvt.c | |||
@@ -42,14 +42,14 @@ int deallocvt_main(int argc, char *argv[]) | |||
42 | case 2: | 42 | case 2: |
43 | if((num = bb_xgetlarg(argv[1], 10, 0, INT_MAX)) == 0) | 43 | if((num = bb_xgetlarg(argv[1], 10, 0, INT_MAX)) == 0) |
44 | bb_error_msg_and_die("0: illegal VT number"); | 44 | bb_error_msg_and_die("0: illegal VT number"); |
45 | /* Falltrough */ | 45 | /* Fallthrough */ |
46 | case 1: | 46 | case 1: |
47 | break; | 47 | break; |
48 | default: | 48 | default: |
49 | bb_show_usage(); | 49 | bb_show_usage(); |
50 | } | 50 | } |
51 | 51 | ||
52 | if (ioctl( get_console_fd(), VT_DISALLOCATE, num )) { | 52 | if (-1 == ioctl( get_console_fd(), VT_DISALLOCATE, num )) { |
53 | bb_perror_msg_and_die("VT_DISALLOCATE"); | 53 | bb_perror_msg_and_die("VT_DISALLOCATE"); |
54 | } | 54 | } |
55 | return EXIT_SUCCESS; | 55 | return EXIT_SUCCESS; |