diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-01-19 23:26:20 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-01-19 23:36:27 +0100 |
| commit | 860de00459dd06c3758fdfc3db8bdd6978b6073c (patch) | |
| tree | bf811cacc875d6c623e6170a9d905e327ab111b6 /src | |
| parent | 881e3da012453941eb2b237d85ab5636eea21c76 (diff) | |
| download | libgit2-860de00459dd06c3758fdfc3db8bdd6978b6073c.tar.gz | |
http: use PRIuZ
MSVC doesn't think %zd is a valid specifier.
Diffstat (limited to 'src')
| -rw-r--r-- | src/transports/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transports/http.c b/src/transports/http.c index 48ea78dce..ce68ab717 100644 --- a/src/transports/http.c +++ b/src/transports/http.c @@ -71,7 +71,7 @@ static int gen_request(git_buf *buf, const char *url, const char *host, const ch if (content_length > 0) { 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-Length: %zd\r\n", content_length); + git_buf_printf(buf, "Content-Length: %" PRIuZ "\r\n", content_length); } else { git_buf_puts(buf, "Accept: */*\r\n"); } |
