http.c: mark file-local functions static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Jan 11, 2010 at 22:26 UTC
83e41e2e61f535d5b432437d4e8ac89c710fc482
2 files changed
+8
-11
http.c
+8
-2
@@ -651,7 +651,7 @@ static void closedown_active_slot(struct active_request_slot *slot)
651
slot->in_use = 0;
652
}
653
654
-void release_active_slot(struct active_request_slot *slot)
654
+static void release_active_slot(struct active_request_slot *slot)
655
{
656
closedown_active_slot(slot);
657
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)
834
return http_request(url, result, HTTP_REQUEST_STRBUF, options);
835
}
836
837
-int http_get_file(const char *url, const char *filename, int options)
837
+/*
838
+ * Downloads an url and stores the result in the given file.
839
+ *
840
+ * If a previous interrupted download is detected (i.e. a previous temporary
841
+ * file is still around) the download is resumed.
842
+ */
843
+static int http_get_file(const char *url, const char *filename, int options)
844
{
845
int ret;
846
struct strbuf tmpfile = STRBUF_INIT;
http.h
-9
@@ -81,7 +81,6 @@ extern int start_active_slot(struct active_request_slot *slot);
81
extern void run_active_slot(struct active_request_slot *slot);
82
extern void finish_active_slot(struct active_request_slot *slot);
83
extern void finish_all_active_slots(void);
84
-extern void release_active_slot(struct active_request_slot *slot);
84
85
#ifdef USE_CURL_MULTI
86
extern void fill_active_slots(void);
@@ -135,14 +134,6 @@ extern char *get_remote_object_url(const char *url, const char *hex,
134
*/
135
int http_get_strbuf(const char *url, struct strbuf *result, int options);
136
138
-/*
139
- * Downloads an url and stores the result in the given file.
140
- *
141
- * If a previous interrupted download is detected (i.e. a previous temporary
142
- * file is still around) the download is resumed.
143
- */
144
-int http_get_file(const char *url, const char *filename, int options);
145
-
137
/*
138
* Prints an error message using error() containing url and curl_errorstr,
139
* and returns ret.