summaryrefslogtreecommitdiffstats
path: root/loader/modules.c
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-08-21 22:24:38 +0000
committerMatt Wilson <msw@redhat.com>1999-08-21 22:24:38 +0000
commit76b0bde0e0cd76ba5713f1a772a08922d2feedae (patch)
tree0a6ae89342817e85881ead2fb32188ae8ea8f00e /loader/modules.c
parentc94b6668bb539bd601c77cf65f31f24885e18d4f (diff)
downloadanaconda-76b0bde0e0cd76ba5713f1a772a08922d2feedae.tar.gz
anaconda-76b0bde0e0cd76ba5713f1a772a08922d2feedae.tar.xz
anaconda-76b0bde0e0cd76ba5713f1a772a08922d2feedae.zip
take a flags argument to mlLoadModule, rather then a testing one
Diffstat (limited to 'loader/modules.c')
-rw-r--r--loader/modules.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/loader/modules.c b/loader/modules.c
index e8fdf1849..4b39179bf 100644
--- a/loader/modules.c
+++ b/loader/modules.c
@@ -10,6 +10,7 @@
#include "isys/isys.h"
+#include "loader.h"
#include "modules.h"
struct moduleDependency_s {
@@ -162,7 +163,7 @@ int mlLoadDeps(moduleDeps * moduleDepListPtr, const char * path) {
}
int mlLoadModule(char * modName, moduleList modLoaded,
- moduleDeps modDeps, char ** args, int testing) {
+ moduleDeps modDeps, char ** args, int flags) {
moduleDeps dep;
char ** nextDep;
char fileName[80];
@@ -179,7 +180,7 @@ int mlLoadModule(char * modName, moduleList modLoaded,
if (dep && dep->deps) {
nextDep = dep->deps;
while (*nextDep) {
- mlLoadModule(*nextDep, modLoaded, modDeps, NULL, testing);
+ mlLoadModule(*nextDep, modLoaded, modDeps, NULL, flags);
nextDep++;
}
@@ -187,7 +188,7 @@ int mlLoadModule(char * modName, moduleList modLoaded,
sprintf(fileName, "%s.o", modName);
- if (testing)
+ if (FL_TESTING(flags))
rc = 0;
else
rc = insmod(fileName, args);