summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 817d14a)
raw | patch | inline | side by side (parent: 817d14a)
author | Junio C Hamano <gitster@pobox.com> | |
Tue, 3 Feb 2009 06:24:40 +0000 (22:24 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 3 Feb 2009 06:44:41 +0000 (22:44 -0800) |
Otherwise -Wunused-function (which is implied by -Wall) triggers.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-push.c | patch | blob | history |
diff --git a/http-push.c b/http-push.c
index ba5cc32584d9e2f9f372cd2e8ecabcf7049ec2b3..203c0750fe2f26da35782455c82dda7498a72666 100644 (file)
--- a/http-push.c
+++ b/http-push.c
strbuf_addf(buf, "%s", hex+2);
}
-static char *get_remote_object_url(const char *url, const char *hex, int only_two_digit_prefix)
-{
- struct strbuf buf = STRBUF_INIT;
- append_remote_object_url(&buf, url, hex, only_two_digit_prefix);
- return strbuf_detach(&buf, NULL);
-}
-
static void finish_request(struct transfer_request *request);
static void release_request(struct transfer_request *request);
}
#ifdef USE_CURL_MULTI
+
+static char *get_remote_object_url(const char *url, const char *hex, int only_two_digit_prefix)
+{
+ struct strbuf buf = STRBUF_INIT;
+ append_remote_object_url(&buf, url, hex, only_two_digit_prefix);
+ return strbuf_detach(&buf, NULL);
+}
+
static size_t fwrite_sha1_file(void *ptr, size_t eltsize, size_t nmemb,
void *data)
{