aboutsummaryrefslogtreecommitdiff
path: root/deallocvt.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-14 23:28:47 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-14 23:28:47 +0000
commit3ab1d8193e335afa74e86a8d8e628158d7e503b9 (patch)
tree6a217bf17e7c00e98a47f657015535f21b53cedd /deallocvt.c
parent28611675ac2c9073639562f4e4477f8e81d01845 (diff)
downloadbusybox-w32-3ab1d8193e335afa74e86a8d8e628158d7e503b9.tar.gz
busybox-w32-3ab1d8193e335afa74e86a8d8e628158d7e503b9.tar.bz2
busybox-w32-3ab1d8193e335afa74e86a8d8e628158d7e503b9.zip
Don't use strings directly in calls to usage(). This is in preparation
for their extraction to a separate file. git-svn-id: svn://busybox.net/trunk/busybox@863 69ca8d6d-28ef-0310-b511-8ec308f3f277
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