From 18125eed10c16b7f8cfc8f242c8fd2f68ea2078f Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 3 Jan 2013 13:45:47 +0100 Subject: [PATCH] distromatic.c: remove unused variable --- src/distromatic.c | 4 ---- 1 file changed, 4 deletions(-) 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++) {