aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Bailey <cbailey32@bloomberg.net>2014-03-29 15:39:00 +0000
committerJunio C Hamano <gitster@pobox.com>2014-03-31 11:50:15 -0700
commit1f26ce615ab4b74cdd018e5d543138c2d188c3d8 (patch)
treeae81a7839d85b7c256be5a5a387169289d23fab9
parent5f95c9f850b19b368c43ae399cc831b17a26a5ac (diff)
downloadgit-1f26ce615ab4b74cdd018e5d543138c2d188c3d8.tar.gz
git-1f26ce615ab4b74cdd018e5d543138c2d188c3d8.tar.xz
dir.c: make git_fnmatch() not inline
Now that it calls a static inline function, it cannot be an inline definition with external linkage. Remove inline and make it an external definition. Signed-off-by: Charles Bailey <cbailey32@bloomberg.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dir.c b/dir.c
index b35b6330f..a1740a51c 100644
--- a/dir.c
+++ b/dir.c
@@ -52,9 +52,9 @@ int fnmatch_icase(const char *pattern, const char *string, int flags)
return fnmatch(pattern, string, flags | (ignore_case ? FNM_CASEFOLD : 0));
}
-inline int git_fnmatch(const struct pathspec_item *item,
- const char *pattern, const char *string,
- int prefix)
+int git_fnmatch(const struct pathspec_item *item,
+ const char *pattern, const char *string,
+ int prefix)
{
if (prefix > 0) {
if (ps_strncmp(item, pattern, string, prefix))