aboutsummaryrefslogtreecommitdiff
path: root/modutils/modutils-24.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-11-22 18:29:01 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-11-22 18:29:01 +0000
commit36309cf3f495dcfd4aba541425b34dd2455cccf2 (patch)
tree5ab06fac3af13f714ac6f69dfacf88246499ce10 /modutils/modutils-24.c
parentcc5feabeba2b1cbc3a1751af08f645b868967519 (diff)
downloadbusybox-36309cf3f495dcfd4aba541425b34dd2455cccf2.tar.gz
insmod: clarify module_name / file_name distinction
Diffstat (limited to 'modutils/modutils-24.c')
-rw-r--r--modutils/modutils-24.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/modutils/modutils-24.c b/modutils/modutils-24.c
index ae0afd44c..ecab193ce 100644
--- a/modutils/modutils-24.c
+++ b/modutils/modutils-24.c
@@ -3810,7 +3810,7 @@ static void print_load_map(struct obj_file *f UNUSED_PARAM)
}
#endif
-int FAST_FUNC bb_init_module_24(const char *m_filename, const char *options UNUSED_PARAM)
+int FAST_FUNC bb_init_module_24(const char *m_filename, const char *options)
{
int k_crcs;
unsigned long m_size;
@@ -3906,13 +3906,13 @@ int FAST_FUNC bb_init_module_24(const char *m_filename, const char *options UNUS
m_addr = create_module(m_name, m_size);
if (m_addr == (ElfW(Addr))(-1)) switch (errno) {
- case EEXIST:
- bb_error_msg_and_die("a module named %s already exists", m_name);
- case ENOMEM:
- bb_error_msg_and_die("can't allocate kernel memory for module; needed %lu bytes",
- m_size);
- default:
- bb_perror_msg_and_die("create_module: %s", m_name);
+ case EEXIST:
+ bb_error_msg_and_die("a module named %s already exists", m_name);
+ case ENOMEM:
+ bb_error_msg_and_die("can't allocate kernel memory for module; needed %lu bytes",
+ m_size);
+ default:
+ bb_perror_msg_and_die("create_module: %s", m_name);
}
#if !LOADBITS