summaryrefslogtreecommitdiff
path: root/lib/libalpm/dload.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/dload.c')
-rw-r--r--lib/libalpm/dload.c8
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;