diff options
author | Erik Troan <ewt@redhat.com> | 1999-07-28 23:27:12 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-07-28 23:27:12 +0000 |
commit | 37af17c1f4ba698872a6b30a09f3df5745c9efd0 (patch) | |
tree | fe268b936b6de74537cab4ae580a4d2572758d37 | |
parent | 838dfa79aee2bd2f8fe96bdeda1978738691bd2b (diff) | |
download | anaconda-37af17c1f4ba698872a6b30a09f3df5745c9efd0.tar.gz anaconda-37af17c1f4ba698872a6b30a09f3df5745c9efd0.tar.xz anaconda-37af17c1f4ba698872a6b30a09f3df5745c9efd0.zip |
need to pass a pointer to the moddep set in mlLoadDeps()
-rw-r--r-- | loader/modules.c | 5 | ||||
-rw-r--r-- | loader/modules.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/loader/modules.c b/loader/modules.c index 9178a6708..ef056e08b 100644 --- a/loader/modules.c +++ b/loader/modules.c @@ -77,13 +77,14 @@ moduleDeps mlNewDeps(void) { return md; } -int mlLoadDeps(moduleDeps moduleDepList, const char * path) { +int mlLoadDeps(moduleDeps * moduleDepListPtr, const char * path) { int fd; char * buf; struct stat sb; char * start, * end, * chptr; int i, numItems; moduleDeps nextDep; + moduleDeps moduleDepList = *moduleDepListPtr; fd = open(path, O_RDONLY); if (fd < 0) { @@ -151,6 +152,8 @@ int mlLoadDeps(moduleDeps moduleDepList, const char * path) { moduleDepList = realloc(moduleDepList, sizeof(*moduleDepList) * (nextDep - moduleDepList + 1)); + *moduleDepListPtr = moduleDepList; + return 0; } diff --git a/loader/modules.h b/loader/modules.h index 94e9f1665..fb8313438 100644 --- a/loader/modules.h +++ b/loader/modules.h @@ -5,7 +5,7 @@ typedef struct moduleDependency_s * moduleDeps; int mlReadLoadedList(moduleList * list); void mlFreeList(moduleList list); -int mlLoadDeps(moduleDeps moduleDepList, const char * path); +int mlLoadDeps(moduleDeps * moduleDepList, const char * path); moduleDeps mlNewDeps(void); int mlLoadModule(char * modName, moduleList modLoaded, moduleDeps modDeps, int testing); |