summaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
authorEric Andersen2001-02-14 21:23:06 +0000
committerEric Andersen2001-02-14 21:23:06 +0000
commit67991cf824f8df27e74c92d754fb507681c69ce6 (patch)
treea0b652f3dc794d1050c1a8de3afb014a621238fa /console-tools
parent68be2ab914e1e20fe666bbd22a89a18714be2789 (diff)
downloadbusybox-67991cf824f8df27e74c92d754fb507681c69ce6.zip
busybox-67991cf824f8df27e74c92d754fb507681c69ce6.tar.gz
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.c2
-rw-r--r--console-tools/deallocvt.c2
-rw-r--r--console-tools/dumpkmap.c2
-rw-r--r--console-tools/loadacm.c2
-rw-r--r--console-tools/loadfont.c2
-rw-r--r--console-tools/loadkmap.c2
-rw-r--r--console-tools/setkeycodes.c2
7 files changed, 7 insertions, 7 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c
index c715e67..f2e6d5f 100644
--- a/console-tools/chvt.c
+++ b/console-tools/chvt.c
@@ -20,7 +20,7 @@ int chvt_main(int argc, char **argv)
int fd, num;
if ((argc != 2) || (**(argv + 1) == '-'))
- usage (chvt_usage);
+ show_usage();
fd = get_console_fd("/dev/console");
num = atoi(argv[1]);
if (ioctl(fd, VT_ACTIVATE, num))
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c
index b51fbae..8c390c2 100644
--- a/console-tools/deallocvt.c
+++ b/console-tools/deallocvt.c
@@ -19,7 +19,7 @@ int deallocvt_main(int argc, char *argv[])
//if ((argc > 2) || ((argv == 2) && (**(argv + 1) == '-')))
if (argc > 2)
- usage(deallocvt_usage);
+ show_usage();
fd = get_console_fd("/dev/console");
diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c
index 4ab711e..b9f1bd2 100644
--- a/console-tools/dumpkmap.c
+++ b/console-tools/dumpkmap.c
@@ -48,7 +48,7 @@ int dumpkmap_main(int argc, char **argv)
char flags[MAX_NR_KEYMAPS], magic[] = "bkeymap";
if (argc>=2 && *argv[1]=='-') {
- usage(dumpkmap_usage);
+ show_usage();
}
fd = open("/dev/tty0", O_RDWR);
diff --git a/console-tools/loadacm.c b/console-tools/loadacm.c
index 345a277..6422137 100644
--- a/console-tools/loadacm.c
+++ b/console-tools/loadacm.c
@@ -34,7 +34,7 @@ int loadacm_main(int argc, char **argv)
int fd;
if (argc>=2 && *argv[1]=='-') {
- usage(loadacm_usage);
+ show_usage();
}
fd = open("/dev/tty", O_RDWR);
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c
index ec3e505..d7bd7e8 100644
--- a/console-tools/loadfont.c
+++ b/console-tools/loadfont.c
@@ -44,7 +44,7 @@ extern int loadfont_main(int argc, char **argv)
int fd;
if (argc != 1)
- usage(loadfont_usage);
+ show_usage();
fd = open("/dev/tty0", O_RDWR);
if (fd < 0)
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c
index a98601a..5ecd819 100644
--- a/console-tools/loadkmap.c
+++ b/console-tools/loadkmap.c
@@ -51,7 +51,7 @@ int loadkmap_main(int argc, char **argv)
char flags[MAX_NR_KEYMAPS], buff[7];
if (argc != 1)
- usage(loadkmap_usage);
+ show_usage();
fd = open("/dev/tty0", O_RDWR);
if (fd < 0)
diff --git a/console-tools/setkeycodes.c b/console-tools/setkeycodes.c
index 3e511ad..0be4724 100644
--- a/console-tools/setkeycodes.c
+++ b/console-tools/setkeycodes.c
@@ -43,7 +43,7 @@ setkeycodes_main(int argc, char** argv)
struct kbkeycode a;
if (argc % 2 != 1 || argc < 2) {
- usage(setkeycodes_usage);
+ show_usage();
}
fd = get_console_fd("/dev/console");