Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/be_sync.c
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2014-10-16 15:36:55 +0200
committerAllan McRae <allan@archlinux.org>2014-10-19 20:48:40 +1000
commitd649dc669db2201b274919223ed0aa6b7c37d70d (patch)
tree3b2e729db64ab7cac2632ae7cdb3d736750a6356 /lib/libalpm/be_sync.c
parent91876c21f16ec14b8b7362a98b72588aeb893ea3 (diff)
dload: mark final_url as const
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_sync.c')
-rw-r--r--lib/libalpm/be_sync.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index 6572a8ad..62fd0f04 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -209,8 +209,7 @@ int SYMEXPORT alpm_db_update(int force, alpm_db_t *db)
}
for(i = db->servers; i; i = i->next) {
- char *final_db_url = NULL;
- const char *server = i->data;
+ const char *server = i->data, *final_db_url = NULL;
struct dload_payload payload;
size_t len;
int sig_ret = 0;