aboutsummaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-14 21:23:06 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-14 21:23:06 +0000
commite171a359ad2de7143fd6ad25bed00304af1094ec (patch)
treea0b652f3dc794d1050c1a8de3afb014a621238fa /modutils
parent76ed9456991d2fbfcb6348953a579ee8fce06f1b (diff)
downloadbusybox-w32-e171a359ad2de7143fd6ad25bed00304af1094ec.tar.gz
busybox-w32-e171a359ad2de7143fd6ad25bed00304af1094ec.tar.bz2
busybox-w32-e171a359ad2de7143fd6ad25bed00304af1094ec.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. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'modutils')
-rw-r--r--modutils/insmod.c8
-rw-r--r--modutils/rmmod.c4
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
82static const int MODUTILS_MODULE_H = 1; 82static 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
288static const int MODUTILS_OBJ_H = 1; 288static 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 }