diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-02-14 21:23:06 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-02-14 21:23:06 +0000 |
commit | 67991cf824f8df27e74c92d754fb507681c69ce6 (patch) | |
tree | a0b652f3dc794d1050c1a8de3afb014a621238fa /console-tools | |
parent | 68be2ab914e1e20fe666bbd22a89a18714be2789 (diff) | |
download | busybox-w32-67991cf824f8df27e74c92d754fb507681c69ce6.tar.gz busybox-w32-67991cf824f8df27e74c92d754fb507681c69ce6.tar.bz2 busybox-w32-67991cf824f8df27e74c92d754fb507681c69ce6.zip |
This patch, put together by Manuel Novoa III, is a merge of work
done by Evin Robertson (bug#1105) and work from Manuel to make
usage messages occupy less space and simplify how usage messages
are displayed.
Diffstat (limited to 'console-tools')
-rw-r--r-- | console-tools/chvt.c | 2 | ||||
-rw-r--r-- | console-tools/deallocvt.c | 2 | ||||
-rw-r--r-- | console-tools/dumpkmap.c | 2 | ||||
-rw-r--r-- | console-tools/loadacm.c | 2 | ||||
-rw-r--r-- | console-tools/loadfont.c | 2 | ||||
-rw-r--r-- | console-tools/loadkmap.c | 2 | ||||
-rw-r--r-- | console-tools/setkeycodes.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c index c715e67de..f2e6d5f17 100644 --- a/console-tools/chvt.c +++ b/console-tools/chvt.c | |||
@@ -20,7 +20,7 @@ int chvt_main(int argc, char **argv) | |||
20 | int fd, num; | 20 | int fd, num; |
21 | 21 | ||
22 | if ((argc != 2) || (**(argv + 1) == '-')) | 22 | if ((argc != 2) || (**(argv + 1) == '-')) |
23 | usage (chvt_usage); | 23 | show_usage(); |
24 | fd = get_console_fd("/dev/console"); | 24 | fd = get_console_fd("/dev/console"); |
25 | num = atoi(argv[1]); | 25 | num = atoi(argv[1]); |
26 | if (ioctl(fd, VT_ACTIVATE, num)) | 26 | if (ioctl(fd, VT_ACTIVATE, num)) |
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c index b51fbaef4..8c390c261 100644 --- a/console-tools/deallocvt.c +++ b/console-tools/deallocvt.c | |||
@@ -19,7 +19,7 @@ int deallocvt_main(int argc, char *argv[]) | |||
19 | 19 | ||
20 | //if ((argc > 2) || ((argv == 2) && (**(argv + 1) == '-'))) | 20 | //if ((argc > 2) || ((argv == 2) && (**(argv + 1) == '-'))) |
21 | if (argc > 2) | 21 | if (argc > 2) |
22 | usage(deallocvt_usage); | 22 | show_usage(); |
23 | 23 | ||
24 | fd = get_console_fd("/dev/console"); | 24 | fd = get_console_fd("/dev/console"); |
25 | 25 | ||
diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c index 4ab711e55..b9f1bd233 100644 --- a/console-tools/dumpkmap.c +++ b/console-tools/dumpkmap.c | |||
@@ -48,7 +48,7 @@ int dumpkmap_main(int argc, char **argv) | |||
48 | char flags[MAX_NR_KEYMAPS], magic[] = "bkeymap"; | 48 | char flags[MAX_NR_KEYMAPS], magic[] = "bkeymap"; |
49 | 49 | ||
50 | if (argc>=2 && *argv[1]=='-') { | 50 | if (argc>=2 && *argv[1]=='-') { |
51 | usage(dumpkmap_usage); | 51 | show_usage(); |
52 | } | 52 | } |
53 | 53 | ||
54 | fd = open("/dev/tty0", O_RDWR); | 54 | fd = open("/dev/tty0", O_RDWR); |
diff --git a/console-tools/loadacm.c b/console-tools/loadacm.c index 345a2773c..6422137a1 100644 --- a/console-tools/loadacm.c +++ b/console-tools/loadacm.c | |||
@@ -34,7 +34,7 @@ int loadacm_main(int argc, char **argv) | |||
34 | int fd; | 34 | int fd; |
35 | 35 | ||
36 | if (argc>=2 && *argv[1]=='-') { | 36 | if (argc>=2 && *argv[1]=='-') { |
37 | usage(loadacm_usage); | 37 | show_usage(); |
38 | } | 38 | } |
39 | 39 | ||
40 | fd = open("/dev/tty", O_RDWR); | 40 | fd = open("/dev/tty", O_RDWR); |
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c index ec3e50560..d7bd7e8f5 100644 --- a/console-tools/loadfont.c +++ b/console-tools/loadfont.c | |||
@@ -44,7 +44,7 @@ extern int loadfont_main(int argc, char **argv) | |||
44 | int fd; | 44 | int fd; |
45 | 45 | ||
46 | if (argc != 1) | 46 | if (argc != 1) |
47 | usage(loadfont_usage); | 47 | show_usage(); |
48 | 48 | ||
49 | fd = open("/dev/tty0", O_RDWR); | 49 | fd = open("/dev/tty0", O_RDWR); |
50 | if (fd < 0) | 50 | if (fd < 0) |
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c index a98601aec..5ecd819f9 100644 --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c | |||
@@ -51,7 +51,7 @@ int loadkmap_main(int argc, char **argv) | |||
51 | char flags[MAX_NR_KEYMAPS], buff[7]; | 51 | char flags[MAX_NR_KEYMAPS], buff[7]; |
52 | 52 | ||
53 | if (argc != 1) | 53 | if (argc != 1) |
54 | usage(loadkmap_usage); | 54 | show_usage(); |
55 | 55 | ||
56 | fd = open("/dev/tty0", O_RDWR); | 56 | fd = open("/dev/tty0", O_RDWR); |
57 | if (fd < 0) | 57 | if (fd < 0) |
diff --git a/console-tools/setkeycodes.c b/console-tools/setkeycodes.c index 3e511ad00..0be4724ca 100644 --- a/console-tools/setkeycodes.c +++ b/console-tools/setkeycodes.c | |||
@@ -43,7 +43,7 @@ setkeycodes_main(int argc, char** argv) | |||
43 | struct kbkeycode a; | 43 | struct kbkeycode a; |
44 | 44 | ||
45 | if (argc % 2 != 1 || argc < 2) { | 45 | if (argc % 2 != 1 || argc < 2) { |
46 | usage(setkeycodes_usage); | 46 | show_usage(); |
47 | } | 47 | } |
48 | 48 | ||
49 | fd = get_console_fd("/dev/console"); | 49 | fd = get_console_fd("/dev/console"); |