summaryrefslogtreecommitdiff
path: root/http-walker.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-05-11 11:37:38 -0700
committerJunio C Hamano <gitster@pobox.com>2011-05-11 11:37:38 -0700
commit1f0f5b54baea4a446450c0586aec222a62af3c6f (patch)
tree6129f264e86bebf71eb5a61a79752ee5a180fedb /http-walker.c
parentebfd72c856fd40b226d977164892bcd22979e78e (diff)
parent0cc6330d0c29dcba062e909543f6adf6872622ad (diff)
downloadgit-1f0f5b54baea4a446450c0586aec222a62af3c6f.tar.gz
Merge branch 'dm/http-cleanup'
* dm/http-cleanup: t5541-http-push: add test for chunked http-push: refactor curl_easy_setup madness http-push: use const for strings in signatures http: make curl callbacks match contracts from curl header
Diffstat (limited to 'http-walker.c')
-rw-r--r--http-walker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/http-walker.c b/http-walker.c
index 9bc8114c3b..51a906e9e3 100644
--- a/http-walker.c
+++ b/http-walker.c
@@ -185,7 +185,7 @@ static void process_alternates_response(void *callback_data)
struct active_request_slot *slot = alt_req->slot;
struct alt_base *tail = cdata->alt;
const char *base = alt_req->base;
- static const char null_byte = '\0';
+ const char null_byte = '\0';
char *data;
int i = 0;
@@ -218,7 +218,7 @@ static void process_alternates_response(void *callback_data)
}
}
- fwrite_buffer(&null_byte, 1, 1, alt_req->buffer);
+ fwrite_buffer((char *)&null_byte, 1, 1, alt_req->buffer);
alt_req->buffer->len--;
data = alt_req->buffer->buf;