Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
http.c: mark file-local functions static
author
Junio C Hamano
<gitster@pobox.com>
Tue, 12 Jan 2010 06:26:08 +0000
(22:26 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 12 Jan 2010 09:06:08 +0000
(
01:06
-0800)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c
patch
|
blob
|
history
http.h
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
cc57114
)
diff --git
a/http.c
b/http.c
index 5c3efb96d92be775b1ab2debed2920363bbe7355..deab59551dad9a0d2c2e86d75071fa561e4cbf1a 100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-651,7
+651,7
@@
static void closedown_active_slot(struct active_request_slot *slot)
slot->in_use = 0;
}
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) {
{
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);
}
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;
{
int ret;
struct strbuf tmpfile = STRBUF_INIT;
diff --git
a/http.h
b/http.h
index f828e1d8067aeff3036c14a1c43e333902e46bd6..5c9441c10ce708be426afe7424d63dcbb68a49e2 100644
(file)
--- a/
http.h
+++ b/
http.h
@@
-81,7
+81,6
@@
extern int start_active_slot(struct active_request_slot *slot);
extern void run_active_slot(struct active_request_slot *slot);
extern void finish_active_slot(struct active_request_slot *slot);
extern void finish_all_active_slots(void);
extern void run_active_slot(struct active_request_slot *slot);
extern void finish_active_slot(struct active_request_slot *slot);
extern void finish_all_active_slots(void);
-extern void release_active_slot(struct active_request_slot *slot);
#ifdef USE_CURL_MULTI
extern void fill_active_slots(void);
#ifdef USE_CURL_MULTI
extern void fill_active_slots(void);
@@
-135,14
+134,6
@@
extern char *get_remote_object_url(const char *url, const char *hex,
*/
int http_get_strbuf(const char *url, struct strbuf *result, int options);
*/
int http_get_strbuf(const char *url, struct strbuf *result, 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.
- */
-int http_get_file(const char *url, const char *filename, int options);
-
/*
* Prints an error message using error() containing url and curl_errorstr,
* and returns ret.
/*
* Prints an error message using error() containing url and curl_errorstr,
* and returns ret.