summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-10-20 20:28:25 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-10-20 20:28:25 +0000
commit3929450d62d3e267fdd43413cdfaee86160e819a (patch)
treec1389d2bf0316da713da98bacd89db770a149b7f
parent69530cd3d91d3516c244ac2cb249d26f6fcdcd12 (diff)
downloadpacman-3929450d62d3e267fdd43413cdfaee86160e819a.tar.xz
removed an uneeded variable declaration
-rw-r--r--src/pacman/sync.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 1a6ee9fe..9d741c48 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -170,7 +170,6 @@ static int sync_synctree(list_t *syncs)
for(i = syncs; i; i = i->next) {
list_t *files = NULL;
- char *mtime = NULL;
char newmtime[16] = "";
char *lastupdate;
sync_t *sync = (sync_t *)i->data;
@@ -180,7 +179,6 @@ static int sync_synctree(list_t *syncs)
if(lastupdate == NULL) {
vprint("failed to get lastupdate time for %s (no big deal)\n", sync->treename);
}
- mtime = lastupdate;
/* build a one-element list */
snprintf(path, PATH_MAX, "%s" PM_EXT_DB, sync->treename);
@@ -188,7 +186,7 @@ static int sync_synctree(list_t *syncs)
snprintf(path, PATH_MAX, "%s%s", root, dbpath);
- ret = downloadfiles_forreal(sync->servers, path, files, mtime, newmtime);
+ ret = downloadfiles_forreal(sync->servers, path, files, (const char *)&lastupdate, newmtime);
vprint("sync: new mtime for %s: %s\n", sync->treename, newmtime);
FREELIST(files);
if(ret > 0) {