diff options
author | Matt Burke <spraints@gmail.com> | 2015-09-24 10:30:37 -0400 |
---|---|---|
committer | Matt Burke <spraints@gmail.com> | 2015-09-24 10:32:29 -0400 |
commit | d16c1b978fa3498a8a800d80ef6ed8a1e39ca314 (patch) | |
tree | dafd09d87ecd41748b8f1795d2dca2f7addfe4c7 | |
parent | e60db3c79a82459aff9bd90fc97ff9d5fb886a04 (diff) | |
download | libgit2-d16c1b978fa3498a8a800d80ef6ed8a1e39ca314.tar.gz |
These can be static
-rw-r--r-- | src/remote.c | 2 | ||||
-rw-r--r-- | src/transports/smart.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/remote.c b/src/remote.c index ce6e13b3d..84b8d590f 100644 --- a/src/remote.c +++ b/src/remote.c @@ -687,7 +687,7 @@ int set_transport_callbacks(git_transport *t, const git_remote_callbacks *cbs) cbs->certificate_check, cbs->payload); } -int set_transport_custom_headers(git_transport *t, const git_strarray *custom_headers) +static int set_transport_custom_headers(git_transport *t, const git_strarray *custom_headers) { if (!t->set_custom_headers || !custom_headers) return 0; diff --git a/src/transports/smart.c b/src/transports/smart.c index f0f212ca3..8c5bc89e8 100644 --- a/src/transports/smart.c +++ b/src/transports/smart.c @@ -66,7 +66,7 @@ static int git_smart__set_callbacks( return 0; } -int http_header_name_length(const char *http_header) +static int http_header_name_length(const char *http_header) { const char *colon = strchr(http_header, ':'); if (!colon) @@ -74,7 +74,7 @@ int http_header_name_length(const char *http_header) return colon - http_header; } -bool is_malformed_http_header(const char *http_header) +static bool is_malformed_http_header(const char *http_header) { const char *c; int name_len; @@ -104,7 +104,7 @@ static char *forbidden_custom_headers[] = { "Content-Length", }; -bool is_forbidden_custom_header(const char *custom_header) +static bool is_forbidden_custom_header(const char *custom_header) { unsigned long i; int name_len = http_header_name_length(custom_header); |