summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/modules.c
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-08-21 16:53:31 +0000
committerOlivier Blin <oblin@mandriva.com>2007-08-21 16:53:31 +0000
commit5730fc5d4a8f6ba45ef3f631723c75116933f6a5 (patch)
tree46b3dcfa46050009e079d7baf03a35ca6fe2ee80 /mdk-stage1/modules.c
parent0471cac15682c28185430409b9b6f918eec1f43e (diff)
downloaddrakx-5730fc5d4a8f6ba45ef3f631723c75116933f6a5.tar
drakx-5730fc5d4a8f6ba45ef3f631723c75116933f6a5.tar.gz
drakx-5730fc5d4a8f6ba45ef3f631723c75116933f6a5.tar.bz2
drakx-5730fc5d4a8f6ba45ef3f631723c75116933f6a5.tar.xz
drakx-5730fc5d4a8f6ba45ef3f631723c75116933f6a5.zip
rename name as modname in module_deps_elem struct
Diffstat (limited to 'mdk-stage1/modules.c')
-rw-r--r--mdk-stage1/modules.c8
1 files changed, 4 insertions, 4 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) {