diff options
author | Erik Troan <ewt@redhat.com> | 2001-11-13 21:22:50 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-11-13 21:22:50 +0000 |
commit | 0bba92fc0070eb0e1096f29d84c4d33ad95b2fa3 (patch) | |
tree | 60d87ed42d2395dc2c439db327fb2244a1d3983f /loader/modules.c | |
parent | 59c4affa31e8a69352a29f1e327e86bed3e606be (diff) | |
download | anaconda-0bba92fc0070eb0e1096f29d84c4d33ad95b2fa3.tar.gz anaconda-0bba92fc0070eb0e1096f29d84c4d33ad95b2fa3.tar.xz anaconda-0bba92fc0070eb0e1096f29d84c4d33ad95b2fa3.zip |
changes for dietlibc
Diffstat (limited to 'loader/modules.c')
-rw-r--r-- | loader/modules.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/loader/modules.c b/loader/modules.c index 036a7b03d..dbf3e7601 100644 --- a/loader/modules.c +++ b/loader/modules.c @@ -102,7 +102,7 @@ int mlReadLoadedList(moduleList * mlp) { ml->mods[ml->numModules].path = NULL; ml->mods[ml->numModules].weLoaded = 0; *end = ' '; - ml->numModules++; + /*ml->numModules++;*/ start = strchr(end, '\n'); if (start) start++; } @@ -458,7 +458,7 @@ static int doLoadModules(const char * origModNames, moduleList modLoaded, paths = extractModules(NULL, list, paths); i = 0; if (!paths) { - logMessage("no modules found -- aborting insertion\n"); + logMessage("no modules found -- aborting insertion"); i++; } else { *items = '\0'; @@ -476,11 +476,13 @@ static int doLoadModules(const char * origModNames, moduleList modLoaded, } /* insert the modules now */ - for (l = list, p = paths; *l; l++, p++) { + for (l = list, p = paths; paths && *l; l++, p++) { if (*p && loadModule(*l, *p, modLoaded, (argModule && !strcmp(argModule, *l)) ? args : NULL, modInfo, flags)) { - logMessage("failed to insert %s\n", *p); + logMessage("failed to insert %s", *p); + } else { + logMessage("inserted %s", *p); } } @@ -498,7 +500,7 @@ static int doLoadModules(const char * origModNames, moduleList modLoaded, } } - for (p = paths; *p; p++) { + for (p = paths; p && *p; p++) { unlink(*p); free(*p); } |