From: Junio C Hamano Date: Wed, 14 Jan 2015 22:57:08 +0000 (-0800) Subject: urlmatch.c: make match_urls() static X-Git-Tag: v2.4.0-rc0~130^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/667f7eb2eac5b5b369dc2a3f444e6057563e683a?ds=inline;hp=--cc urlmatch.c: make match_urls() static No external callers exist. Signed-off-by: Junio C Hamano --- 667f7eb2eac5b5b369dc2a3f444e6057563e683a diff --git a/urlmatch.c b/urlmatch.c index 618d216491..132d342bc1 100644 --- a/urlmatch.c +++ b/urlmatch.c @@ -412,9 +412,9 @@ static size_t url_match_prefix(const char *url, return 0; } -int match_urls(const struct url_info *url, - const struct url_info *url_prefix, - int *exactusermatch) +static int match_urls(const struct url_info *url, + const struct url_info *url_prefix, + int *exactusermatch) { /* * url_prefix matches url if the scheme, host and port of url_prefix diff --git a/urlmatch.h b/urlmatch.h index b461dfd3df..528862adc5 100644 --- a/urlmatch.h +++ b/urlmatch.h @@ -31,7 +31,6 @@ struct url_info { }; extern char *url_normalize(const char *, struct url_info *); -extern int match_urls(const struct url_info *url, const struct url_info *url_prefix, int *exactusermatch); struct urlmatch_item { size_t matched_len;