lib/download.c: unconstify to fix a warning.

This commit is contained in:
Juan RP 2014-08-13 22:11:25 +02:00
parent b8d22c9091
commit fbf4ed4d2a

View File

@ -330,7 +330,7 @@ xbps_fetch_delta(struct xbps_handle *xhp, const char *basefile, const char *uri,
basehash = xbps_file_hash(basefile); basehash = xbps_file_hash(basefile);
assert(basehash); assert(basehash);
dname = xbps_xasprintf("%s.%s.vcdiff", basename(uri), basehash); dname = xbps_xasprintf("%s.%s.vcdiff", basename(__UNCONST(uri)), basehash);
durl = xbps_xasprintf("%s.%s.vcdiff", uri, basehash); durl = xbps_xasprintf("%s.%s.vcdiff", uri, basehash);
tempfile = xbps_xasprintf("%s.tmp", filename); tempfile = xbps_xasprintf("%s.tmp", filename);