diff options
author | Christian Hesse <mail@eworm.de> | 2014-10-16 15:36:55 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-10-19 12:48:40 +0200 |
commit | d649dc669db2201b274919223ed0aa6b7c37d70d (patch) | |
tree | 3b2e729db64ab7cac2632ae7cdb3d736750a6356 /lib/libalpm/dload.c | |
parent | 91876c21f16ec14b8b7362a98b72588aeb893ea3 (diff) | |
download | pacman-d649dc669db2201b274919223ed0aa6b7c37d70d.tar.gz pacman-d649dc669db2201b274919223ed0aa6b7c37d70d.tar.xz |
dload: mark final_url as const
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/dload.c')
-rw-r--r-- | lib/libalpm/dload.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 43c15035..e3409f99 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -388,7 +388,7 @@ static FILE *create_tempfile(struct dload_payload *payload, const char *localpat #define HOSTNAME_SIZE 256 static int curl_download_internal(struct dload_payload *payload, - const char *localpath, char **final_file, char **final_url) + const char *localpath, char **final_file, const char **final_url) { int ret = -1; FILE *localf = NULL; @@ -622,7 +622,7 @@ cleanup: * @return 0 on success, -1 on error (pm_errno is set accordingly if errors_ok == 0) */ int _alpm_download(struct dload_payload *payload, const char *localpath, - char **final_file, char **final_url) + char **final_file, const char **final_url) { alpm_handle_t *handle = payload->handle; @@ -664,8 +664,8 @@ static char *filecache_find_url(alpm_handle_t *handle, const char *url) char SYMEXPORT *alpm_fetch_pkgurl(alpm_handle_t *handle, const char *url) { char *filepath; - const char *cachedir; - char *final_file = NULL, *final_pkg_url = NULL; + const char *cachedir, *final_pkg_url = NULL; + char *final_file = NULL; struct dload_payload payload; int ret = 0; |