summaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
authorRob Landley2006-03-06 20:47:33 +0000
committerRob Landley2006-03-06 20:47:33 +0000
commitdfba741457cc81eb2ed3a9d4c074fbad74aa3249 (patch)
tree588d140a71e857cb32c80d1faad6f3073b119aa7 /modutils
parent1f5e25bf3eca768b8cee1c689ac154d8f51662f9 (diff)
downloadbusybox-dfba741457cc81eb2ed3a9d4c074fbad74aa3249.zip
busybox-dfba741457cc81eb2ed3a9d4c074fbad74aa3249.tar.gz
Robert P. Day removed 8 gazillion occurrences of "extern" on function
definitions. (That should only be on prototypes.)
Diffstat (limited to 'modutils')
-rw-r--r--modutils/insmod.c4
-rw-r--r--modutils/lsmod.c4
-rw-r--r--modutils/modprobe.c2
-rw-r--r--modutils/rmmod.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 14322d9..8b11278 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -3903,7 +3903,7 @@ static void print_load_map(struct obj_file *f)
#endif
-extern int insmod_main( int argc, char **argv)
+int insmod_main( int argc, char **argv)
{
int opt;
int len;
@@ -4267,7 +4267,7 @@ static const char *moderror(int err)
}
}
-extern int insmod_ng_main( int argc, char **argv)
+int insmod_ng_main( int argc, char **argv)
{
int i;
int fd;
diff --git a/modutils/lsmod.c b/modutils/lsmod.c
index 018bc53..82136dd 100644
--- a/modutils/lsmod.c
+++ b/modutils/lsmod.c
@@ -97,7 +97,7 @@ static const int NEW_MOD_VISITED = 8;
static const int NEW_MOD_USED_ONCE = 16;
static const int NEW_MOD_INITIALIZING = 64;
-extern int lsmod_main(int argc, char **argv)
+int lsmod_main(int argc, char **argv)
{
struct module_info info;
char *module_names, *mn, *deps, *dn;
@@ -160,7 +160,7 @@ extern int lsmod_main(int argc, char **argv)
#else /* CONFIG_FEATURE_QUERY_MODULE_INTERFACE */
-extern int lsmod_main(int argc, char **argv)
+int lsmod_main(int argc, char **argv)
{
printf("Module Size Used by");
check_tainted();
diff --git a/modutils/modprobe.c b/modutils/modprobe.c
index d04c7ff..c161515 100644
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -823,7 +823,7 @@ static int mod_remove ( char *mod )
}
-extern int modprobe_main(int argc, char** argv)
+int modprobe_main(int argc, char** argv)
{
int rc = EXIT_SUCCESS;
char *unused;
diff --git a/modutils/rmmod.c b/modutils/rmmod.c
index 44c606e..5302ab2 100644
--- a/modutils/rmmod.c
+++ b/modutils/rmmod.c
@@ -55,7 +55,7 @@ static inline void filename2modname(char *modname, const char *afterslash)
}
#endif
-extern int rmmod_main(int argc, char **argv)
+int rmmod_main(int argc, char **argv)
{
int n, ret = EXIT_SUCCESS;
unsigned int flags = O_NONBLOCK|O_EXCL;