aboutsummaryrefslogtreecommitdiff
path: root/console-tools/deallocvt.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-09-08 03:27:06 +0000
committerRob Landley <rob@landley.net>2005-09-08 03:27:06 +0000
commit9f0e00fc61858a0e3cc6711b78e95c57b484ef7c (patch)
treec7b8e35296501484d82d6ac84ae1685df3339ccb /console-tools/deallocvt.c
parent230b411de87219f8a59e5d4061d7908cd44ed4d7 (diff)
downloadbusybox-w32-9f0e00fc61858a0e3cc6711b78e95c57b484ef7c.tar.gz
busybox-w32-9f0e00fc61858a0e3cc6711b78e95c57b484ef7c.tar.bz2
busybox-w32-9f0e00fc61858a0e3cc6711b78e95c57b484ef7c.zip
Tito sent more size tweaks.
Diffstat (limited to 'console-tools/deallocvt.c')
-rw-r--r--console-tools/deallocvt.c4
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;