http: use PRIuZ

MSVC doesn't think %zd is a valid specifier.
This commit is contained in:
Carlos Martín Nieto 2012-01-19 23:26:20 +01:00
parent 881e3da012
commit 860de00459

View File

@ -71,7 +71,7 @@ static int gen_request(git_buf *buf, const char *url, const char *host, const ch
if (content_length > 0) { if (content_length > 0) {
git_buf_printf(buf, "Accept: application/x-git-%s-result\r\n", service); git_buf_printf(buf, "Accept: application/x-git-%s-result\r\n", service);
git_buf_printf(buf, "Content-Type: application/x-git-%s-request\r\n", service); git_buf_printf(buf, "Content-Type: application/x-git-%s-request\r\n", service);
git_buf_printf(buf, "Content-Length: %zd\r\n", content_length); git_buf_printf(buf, "Content-Length: %" PRIuZ "\r\n", content_length);
} else { } else {
git_buf_puts(buf, "Accept: */*\r\n"); git_buf_puts(buf, "Accept: */*\r\n");
} }