mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
dload: use intmax_t when printing off_t
This works for both 32-bit and 64-bit platforms. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
29ad9e0a0a
commit
8d0ff3d7dc
@ -213,7 +213,8 @@ static void curl_set_handle_opts(struct dload_payload *payload,
|
||||
_alpm_log(handle, ALPM_LOG_DEBUG, "url: %s\n", payload->fileurl);
|
||||
|
||||
if(payload->max_size) {
|
||||
_alpm_log(handle, ALPM_LOG_DEBUG, "maxsize: %ld\n", payload->max_size);
|
||||
_alpm_log(handle, ALPM_LOG_DEBUG, "maxsize: %jd\n",
|
||||
(intmax_t)payload->max_size);
|
||||
curl_easy_setopt(handle->curl, CURLOPT_MAXFILESIZE_LARGE,
|
||||
(curl_off_t)payload->max_size);
|
||||
}
|
||||
@ -235,7 +236,8 @@ static void curl_set_handle_opts(struct dload_payload *payload,
|
||||
curl_easy_setopt(handle->curl, CURLOPT_RESUME_FROM_LARGE,
|
||||
(curl_off_t)st.st_size);
|
||||
_alpm_log(handle, ALPM_LOG_DEBUG,
|
||||
"tempfile found, attempting continuation from %jd bytes\n", st.st_size);
|
||||
"tempfile found, attempting continuation from %jd bytes\n",
|
||||
(intmax_t)st.st_size);
|
||||
payload->initial_size = st.st_size;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user