summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-01-11 22:26:08 -0800
committerJunio C Hamano <gitster@pobox.com>2010-01-12 01:06:08 -0800
commit83e41e2e61f535d5b432437d4e8ac89c710fc482 (patch)
tree4566346ef404f45ebfdf49b81c56dc9a9570473b /http.c
parentcc5711424b7ae36276a40c06ede5d95f87ca20f0 (diff)
downloadgit-83e41e2e61f535d5b432437d4e8ac89c710fc482.tar.gz
http.c: mark file-local functions static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http.c')
-rw-r--r--http.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/http.c b/http.c
index 5c3efb96d9..deab59551d 100644
--- a/http.c
+++ b/http.c
@@ -651,7 +651,7 @@ static void closedown_active_slot(struct active_request_slot *slot)
slot->in_use = 0;
}
-void release_active_slot(struct active_request_slot *slot)
+static void release_active_slot(struct active_request_slot *slot)
{
closedown_active_slot(slot);
if (slot->curl && curl_session_count > min_curl_sessions) {
@@ -834,7 +834,13 @@ int http_get_strbuf(const char *url, struct strbuf *result, int options)
return http_request(url, result, HTTP_REQUEST_STRBUF, options);
}
-int http_get_file(const char *url, const char *filename, int options)
+/*
+ * Downloads an url and stores the result in the given file.
+ *
+ * If a previous interrupted download is detected (i.e. a previous temporary
+ * file is still around) the download is resumed.
+ */
+static int http_get_file(const char *url, const char *filename, int options)
{
int ret;
struct strbuf tmpfile = STRBUF_INIT;