Skip to content

Commit 23bc35f

Browse files
committed
Merge branch 'dt/http-range'
Portability fix for a topic already in 'master'. * dt/http-range: http: fix some printf format warnings
2 parents 40fdcc5 + 838ecf0 commit 23bc35f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

http.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,8 +1628,8 @@ struct http_pack_request *new_http_pack_request(
16281628
if (prev_posn>0) {
16291629
if (http_is_verbose)
16301630
fprintf(stderr,
1631-
"Resuming fetch of pack %s at byte %ld\n",
1632-
sha1_to_hex(target->sha1), prev_posn);
1631+
"Resuming fetch of pack %s at byte %"PRIuMAX"\n",
1632+
sha1_to_hex(target->sha1), (uintmax_t)prev_posn);
16331633
http_opt_request_remainder(preq->slot->curl, prev_posn);
16341634
}
16351635

@@ -1783,8 +1783,8 @@ struct http_object_request *new_http_object_request(const char *base_url,
17831783
if (prev_posn>0) {
17841784
if (http_is_verbose)
17851785
fprintf(stderr,
1786-
"Resuming fetch of object %s at byte %ld\n",
1787-
hex, prev_posn);
1786+
"Resuming fetch of object %s at byte %"PRIuMAX"\n",
1787+
hex, (uintmax_t)prev_posn);
17881788
http_opt_request_remainder(freq->slot->curl, prev_posn);
17891789
}
17901790

0 commit comments

Comments
 (0)