summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-06-23 16:22:50 +0000
committerMatt Wilson <msw@redhat.com>1999-06-23 16:22:50 +0000
commit1d6b7761f0ba402c2f4e146c8b9d904faaf85ef3 (patch)
treec283bff77b4c33a6671604428821d2945472afaa /loader
parent29276ce2a2fac140fd1701e6242da519e4ccd44b (diff)
downloadanaconda-1d6b7761f0ba402c2f4e146c8b9d904faaf85ef3.tar.gz
anaconda-1d6b7761f0ba402c2f4e146c8b9d904faaf85ef3.tar.xz
anaconda-1d6b7761f0ba402c2f4e146c8b9d904faaf85ef3.zip
too many inserts
Diffstat (limited to 'loader')
-rw-r--r--loader/loader.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/loader/loader.c b/loader/loader.c
index 94e4fea88..32264a619 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -146,7 +146,7 @@ static int configureNetDevice(struct intfInfo * intf) {
}
int main(int argc, char ** argv) {
- char * arg;
+ char * arg, **args;
poptContext optCon;
int testing, network, local, rc;
char ** modules, *module;
@@ -182,16 +182,14 @@ int main(int argc, char ** argv) {
if (modules == NULL) {
printf("No PCI devices found :(\n");
} else {
- module = *modules;
- while (module) {
+ while (module = *modules++) {
if (!testing) {
printf("Inserting module %s\n", module);
insmod(module, NULL);
} else {
- printf("If I were not testing, I would run insmod(%s, NULL);\n",
+ printf("Test mode: I would run insmod(%s, args);\n",
module);
}
- module = *modules++;
}
}