Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/dload.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-09-06 11:44:29 -0500
committerDan McGee <dan@archlinux.org>2011-09-06 11:44:29 -0500
commit8d0ff3d7dc4ea925a1fd94ae022a16a14945aa3f (patch)
tree87166834b2751b73ec0370ccfeeccdd6fe8fbd65 /lib/libalpm/dload.c
parent29ad9e0a0a93a60a1118eb0e8cb6a14df147320f (diff)
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>
Diffstat (limited to 'lib/libalpm/dload.c')
-rw-r--r--lib/libalpm/dload.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index ec3f4989..4937f6ea 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -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;
}
}