removed an uneeded variable declaration
This commit is contained in:
parent
69530cd3d9
commit
3929450d62
1 changed files with 1 additions and 3 deletions
|
@ -170,7 +170,6 @@ static int sync_synctree(list_t *syncs)
|
||||||
|
|
||||||
for(i = syncs; i; i = i->next) {
|
for(i = syncs; i; i = i->next) {
|
||||||
list_t *files = NULL;
|
list_t *files = NULL;
|
||||||
char *mtime = NULL;
|
|
||||||
char newmtime[16] = "";
|
char newmtime[16] = "";
|
||||||
char *lastupdate;
|
char *lastupdate;
|
||||||
sync_t *sync = (sync_t *)i->data;
|
sync_t *sync = (sync_t *)i->data;
|
||||||
|
@ -180,7 +179,6 @@ static int sync_synctree(list_t *syncs)
|
||||||
if(lastupdate == NULL) {
|
if(lastupdate == NULL) {
|
||||||
vprint("failed to get lastupdate time for %s (no big deal)\n", sync->treename);
|
vprint("failed to get lastupdate time for %s (no big deal)\n", sync->treename);
|
||||||
}
|
}
|
||||||
mtime = lastupdate;
|
|
||||||
|
|
||||||
/* build a one-element list */
|
/* build a one-element list */
|
||||||
snprintf(path, PATH_MAX, "%s" PM_EXT_DB, sync->treename);
|
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);
|
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);
|
vprint("sync: new mtime for %s: %s\n", sync->treename, newmtime);
|
||||||
FREELIST(files);
|
FREELIST(files);
|
||||||
if(ret > 0) {
|
if(ret > 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue