summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/modules.c8
-rw-r--r--mdk-stage1/modules.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index 48fc20afd..ad2ae6954 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -141,7 +141,7 @@ static int load_modules_dependencies(void)
}
/* sort of a good line */
- modules_deps[line].name = strdup(start);
+ modules_deps[line].modname = strdup(start);
start = ptr;
i = 0;
@@ -163,7 +163,7 @@ static int load_modules_dependencies(void)
line++;
start = end + 1;
}
- modules_deps[line].name = NULL;
+ modules_deps[line].modname = NULL;
return 0;
}
@@ -226,9 +226,9 @@ static enum insmod_return insmod_with_deps(const char * mod_name, char * options
struct module_deps_elem * dep;
dep = modules_deps;
- while (dep && dep->name && strcmp(dep->name, mod_name)) dep++;
+ while (dep && dep->modname && strcmp(dep->modname, mod_name)) dep++;
- if (dep && dep->name && dep->deps) {
+ if (dep && dep->modname && dep->deps) {
char ** one_dep;
one_dep = dep->deps;
while (*one_dep) {
diff --git a/mdk-stage1/modules.h b/mdk-stage1/modules.h
index 1d48f71e3..3cd11e49e 100644
--- a/mdk-stage1/modules.h
+++ b/mdk-stage1/modules.h
@@ -27,7 +27,7 @@ enum return_type ask_insmod(enum driver_type);
int module_already_present(const char * name);
struct module_deps_elem {
- char * name;
+ char * modname;
char ** deps;
};