diff --git a/src/distromatic.c b/src/distromatic.c index 46d3862..49c7346 100644 --- a/src/distromatic.c +++ b/src/distromatic.c @@ -363,7 +363,6 @@ handleObsoletedPackages(struct configTag *ct, int archidx) static int resolveFirstLevelDependencies(struct configTag *ct, int archidx) { - struct requireList *currrequire; struct headerList *currheader, *scanheader, **newprovider; struct providedList *provided; struct fileTree *file; @@ -376,7 +375,6 @@ resolveFirstLevelDependencies(struct configTag *ct, int archidx) while (currheader) { scanheader = ct->headerlist[archidx]; - currrequire = NULL; currheader->requirelist = NULL; if ((!currheader->obsoleted) && (currheader->next) && (!strcmp(currheader->name,currheader->next->name))) { // mark obsoleted any package with same name in upper level repositories @@ -582,7 +580,6 @@ resolveFirstLevelSourceDependencies(struct configTag *ct, int archidx) { struct headerSourceList *currsourceheader = ct->headersourcelist; struct headerList *scanheader; - struct requireList *currrequire; struct providedList *provided; struct fileTree *file; char warning[PATH_MAX]; @@ -592,7 +589,6 @@ resolveFirstLevelSourceDependencies(struct configTag *ct, int archidx) logmsg(LOG_DEBUG,"resolveFirstLevelSourceDependencies - sources"); while (currsourceheader) { scanheader = ct->headerlist[archidx]; - currrequire = NULL; currsourceheader->requirelist = NULL; // currsourceheader->require.resolved = malloc(sizeof(struct providedList*)*currsourceheader->requirecount); for (i = 0; i < currsourceheader->requirecount; i++) {