Skip to content

Commit 667f7eb

Browse files
committed
urlmatch.c: make match_urls() static
No external callers exist. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0131c49 commit 667f7eb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

urlmatch.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,9 @@ static size_t url_match_prefix(const char *url,
412412
return 0;
413413
}
414414

415-
int match_urls(const struct url_info *url,
416-
const struct url_info *url_prefix,
417-
int *exactusermatch)
415+
static int match_urls(const struct url_info *url,
416+
const struct url_info *url_prefix,
417+
int *exactusermatch)
418418
{
419419
/*
420420
* url_prefix matches url if the scheme, host and port of url_prefix

urlmatch.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ struct url_info {
3131
};
3232

3333
extern char *url_normalize(const char *, struct url_info *);
34-
extern int match_urls(const struct url_info *url, const struct url_info *url_prefix, int *exactusermatch);
3534

3635
struct urlmatch_item {
3736
size_t matched_len;

0 commit comments

Comments
 (0)