]> git.ipfire.org Git - thirdparty/git.git/blobdiff - http-push.c
test-date: drop unused parameter to getnanos()
[thirdparty/git.git] / http-push.c
index d1f52cbdf698ef3ac48d3c599d28d6ba7dfa13aa..cd485909127a79afcbb58ef18cd28977b65efb79 100644 (file)
@@ -365,7 +365,7 @@ static void start_put(struct transfer_request *request)
        git_zstream stream;
 
        unpacked = read_object_file(&request->obj->oid, &type, &len);
-       hdrlen = xsnprintf(hdr, sizeof(hdr), "%s %lu", type_name(type), len) + 1;
+       hdrlen = xsnprintf(hdr, sizeof(hdr), "%s %"PRIuMAX , type_name(type), (uintmax_t)len) + 1;
 
        /* Set it up */
        git_deflate_init(&stream, zlib_compression_level);