summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-03 18:14:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-01-03 18:14:05 (GMT)
commitcd46f2e59de2df74844c9c594bfbfcdea24acd23 (patch)
treeddeb349e87792ae9ce3e584dd5a8166b72332ebe /compat
parent298caa7e9e2a813e6d80cf77c64f87ae04c731ff (diff)
parent38104ca6b98180efc6bdb6a56c1fcc3910e29d68 (diff)
downloadgit-cd46f2e59de2df74844c9c594bfbfcdea24acd23.zip
git-cd46f2e59de2df74844c9c594bfbfcdea24acd23.tar.gz
git-cd46f2e59de2df74844c9c594bfbfcdea24acd23.tar.bz2
Merge branch 'jc/maint-fnmatch-old-style-definition'
Update old-style function definition "int foo(bar) int bar; {}" to "int foo(int bar) {}". * jc/maint-fnmatch-old-style-definition: compat/fnmatch: update old-style definition to ANSI
Diffstat (limited to 'compat')
-rw-r--r--compat/fnmatch/fnmatch.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/compat/fnmatch/fnmatch.c b/compat/fnmatch/fnmatch.c
index 0ff1d27..b8b7dc2 100644
--- a/compat/fnmatch/fnmatch.c
+++ b/compat/fnmatch/fnmatch.c
@@ -135,9 +135,9 @@ extern int errno;
# if !defined HAVE___STRCHRNUL && !defined _LIBC
static char *
-__strchrnul (s, c)
- const char *s;
- int c;
+__strchrnul (const char *s, int c)
+
+
{
char *result = strchr (s, c);
if (result == NULL)
@@ -159,11 +159,11 @@ static int internal_fnmatch __P ((const char *pattern, const char *string,
internal_function;
static int
internal_function
-internal_fnmatch (pattern, string, no_leading_period, flags)
- const char *pattern;
- const char *string;
- int no_leading_period;
- int flags;
+internal_fnmatch (const char *pattern, const char *string, int no_leading_period, int flags)
+
+
+
+
{
register const char *p = pattern, *n = string;
register unsigned char c;
@@ -481,10 +481,10 @@ internal_fnmatch (pattern, string, no_leading_period, flags)
int
-fnmatch (pattern, string, flags)
- const char *pattern;
- const char *string;
- int flags;
+fnmatch (const char *pattern, const char *string, int flags)
+
+
+
{
return internal_fnmatch (pattern, string, flags & FNM_PERIOD, flags);
}