Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
urlmatch.c: make match_urls() static
author
Junio C Hamano
<gitster@pobox.com>
Wed, 14 Jan 2015 22:57:08 +0000
(14:57 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 15 Jan 2015 19:05:48 +0000
(11:05 -0800)
No external callers exist.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
urlmatch.c
patch
|
blob
|
history
urlmatch.h
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
0131c49
)
diff --git
a/urlmatch.c
b/urlmatch.c
index 618d2164919758b141aa9d6408c57a4fb99c922c..132d342bc12bf790f9964f179385aa4f08e6ae00 100644
(file)
--- a/
urlmatch.c
+++ b/
urlmatch.c
@@
-412,9
+412,9
@@
static size_t url_match_prefix(const char *url,
return 0;
}
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
{
/*
* url_prefix matches url if the scheme, host and port of url_prefix
diff --git
a/urlmatch.h
b/urlmatch.h
index b461dfd3dfee2c37eb65e5abb28f6f128f40096b..528862adc55c43ed26763b3c05e1d27d558a1b74 100644
(file)
--- a/
urlmatch.h
+++ b/
urlmatch.h
@@
-31,7
+31,6
@@
struct url_info {
};
extern char *url_normalize(const char *, 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;
struct urlmatch_item {
size_t matched_len;