aboutsummaryrefslogtreecommitdiff
path: root/deallocvt.c
diff options
context:
space:
mode:
Diffstat (limited to 'deallocvt.c')
-rw-r--r--deallocvt.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/deallocvt.c b/deallocvt.c
index 906f3a9fa..042de8649 100644
--- a/deallocvt.c
+++ b/deallocvt.c
@@ -13,19 +13,19 @@
13/* From <linux/vt.h> */ 13/* From <linux/vt.h> */
14#define VT_DISALLOCATE 0x5608 /* free memory associated to vt */ 14#define VT_DISALLOCATE 0x5608 /* free memory associated to vt */
15 15
16const char deallocvt_usage[] =
17 "deallocvt N\n"
18#ifndef BB_FEATURE_TRIVIAL_HELP
19 "\nDeallocate unused virtual terminal /dev/ttyN\n"
20#endif
21 ;
16 22
17int deallocvt_main(int argc, char *argv[]) 23int deallocvt_main(int argc, char *argv[])
18{ 24{
19 int fd, num, i; 25 int fd, num, i;
20 26
21 if ((argc != 2) || (**(argv + 1) == '-')) { 27 if ((argc != 2) || (**(argv + 1) == '-'))
22 usage 28 usage(deallocvt_usage);
23 ("deallocvt N\n"
24#ifndef BB_FEATURE_TRIVIAL_HELP
25 "\nDeallocate unused virtual terminal /dev/ttyN\n"
26#endif
27 );
28 }
29 29
30 fd = get_console_fd("/dev/console"); 30 fd = get_console_fd("/dev/console");
31 31