Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d16c1b9

Browse files
committed
These can be static
1 parent e60db3c commit d16c1b9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ int set_transport_callbacks(git_transport *t, const git_remote_callbacks *cbs)
687687
cbs->certificate_check, cbs->payload);
688688
}
689689

690-
int set_transport_custom_headers(git_transport *t, const git_strarray *custom_headers)
690+
static int set_transport_custom_headers(git_transport *t, const git_strarray *custom_headers)
691691
{
692692
if (!t->set_custom_headers || !custom_headers)
693693
return 0;

src/transports/smart.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ static int git_smart__set_callbacks(
6666
return 0;
6767
}
6868

69-
int http_header_name_length(const char *http_header)
69+
static int http_header_name_length(const char *http_header)
7070
{
7171
const char *colon = strchr(http_header, ':');
7272
if (!colon)
7373
return 0;
7474
return colon - http_header;
7575
}
7676

77-
bool is_malformed_http_header(const char *http_header)
77+
static bool is_malformed_http_header(const char *http_header)
7878
{
7979
const char *c;
8080
int name_len;
@@ -104,7 +104,7 @@ static char *forbidden_custom_headers[] = {
104104
"Content-Length",
105105
};
106106

107-
bool is_forbidden_custom_header(const char *custom_header)
107+
static bool is_forbidden_custom_header(const char *custom_header)
108108
{
109109
unsigned long i;
110110
int name_len = http_header_name_length(custom_header);

0 commit comments

Comments
 (0)