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 /modutils | |
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 'modutils')
-rw-r--r-- | modutils/insmod.c | 8 | ||||
-rw-r--r-- | modutils/rmmod.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index e55d9fafb..0da0a3962 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c | |||
@@ -81,7 +81,7 @@ | |||
81 | #ifndef MODUTILS_MODULE_H | 81 | #ifndef MODUTILS_MODULE_H |
82 | static const int MODUTILS_MODULE_H = 1; | 82 | static const int MODUTILS_MODULE_H = 1; |
83 | 83 | ||
84 | #ident "$Id: insmod.c,v 1.45 2001/01/31 19:00:21 kraai Exp $" | 84 | #ident "$Id: insmod.c,v 1.46 2001/02/14 21:23:06 andersen Exp $" |
85 | 85 | ||
86 | /* This file contains the structures used by the 2.0 and 2.1 kernels. | 86 | /* This file contains the structures used by the 2.0 and 2.1 kernels. |
87 | We do not use the kernel headers directly because we do not wish | 87 | We do not use the kernel headers directly because we do not wish |
@@ -287,7 +287,7 @@ int delete_module(const char *); | |||
287 | #ifndef MODUTILS_OBJ_H | 287 | #ifndef MODUTILS_OBJ_H |
288 | static const int MODUTILS_OBJ_H = 1; | 288 | static const int MODUTILS_OBJ_H = 1; |
289 | 289 | ||
290 | #ident "$Id: insmod.c,v 1.45 2001/01/31 19:00:21 kraai Exp $" | 290 | #ident "$Id: insmod.c,v 1.46 2001/02/14 21:23:06 andersen Exp $" |
291 | 291 | ||
292 | /* The relocatable object is manipulated using elfin types. */ | 292 | /* The relocatable object is manipulated using elfin types. */ |
293 | 293 | ||
@@ -2916,12 +2916,12 @@ extern int insmod_main( int argc, char **argv) | |||
2916 | * loading the same module 50 times concurrently. */ | 2916 | * loading the same module 50 times concurrently. */ |
2917 | break; | 2917 | break; |
2918 | default: | 2918 | default: |
2919 | usage(insmod_usage); | 2919 | show_usage(); |
2920 | } | 2920 | } |
2921 | } | 2921 | } |
2922 | 2922 | ||
2923 | if (argv[optind] == NULL) { | 2923 | if (argv[optind] == NULL) { |
2924 | usage(insmod_usage); | 2924 | show_usage(); |
2925 | } | 2925 | } |
2926 | 2926 | ||
2927 | /* Grab the module name */ | 2927 | /* Grab the module name */ |
diff --git a/modutils/rmmod.c b/modutils/rmmod.c index 3a66af87a..7d4538e6e 100644 --- a/modutils/rmmod.c +++ b/modutils/rmmod.c | |||
@@ -39,7 +39,7 @@ extern int rmmod_main(int argc, char **argv) | |||
39 | { | 39 | { |
40 | int ret = EXIT_SUCCESS; | 40 | int ret = EXIT_SUCCESS; |
41 | if (argc <= 1) { | 41 | if (argc <= 1) { |
42 | usage(rmmod_usage); | 42 | show_usage(); |
43 | } | 43 | } |
44 | 44 | ||
45 | /* Parse any options */ | 45 | /* Parse any options */ |
@@ -52,7 +52,7 @@ extern int rmmod_main(int argc, char **argv) | |||
52 | perror_msg_and_die("rmmod"); | 52 | perror_msg_and_die("rmmod"); |
53 | return EXIT_SUCCESS; | 53 | return EXIT_SUCCESS; |
54 | default: | 54 | default: |
55 | usage(rmmod_usage); | 55 | show_usage(); |
56 | } | 56 | } |
57 | } | 57 | } |
58 | } | 58 | } |