Skip to content

Commit

Permalink
Merge branch 'jc/maint-fnmatch-old-style-definition'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gitster committed Jan 3, 2013
2 parents 298caa7 + 38104ca commit cd46f2e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions compat/fnmatch/fnmatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit cd46f2e

Please sign in to comment.