Skip to content

Commit

Permalink
tree-walk: drop unused parameter from match_dir_prefix
Browse files Browse the repository at this point in the history
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Dan McGee authored and Junio C Hamano committed Sep 29, 2011
1 parent ec014ea commit 6de9691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tree-walk.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ static int match_entry(const struct name_entry *entry, int pathlen,
return 0;
}

static int match_dir_prefix(const char *base, int baselen,
static int match_dir_prefix(const char *base,
const char *match, int matchlen)
{
if (strncmp(base, match, matchlen))
Expand Down Expand Up @@ -579,7 +579,7 @@ int tree_entry_interesting(const struct name_entry *entry,

if (baselen >= matchlen) {
/* If it doesn't match, move along... */
if (!match_dir_prefix(base_str, baselen, match, matchlen))
if (!match_dir_prefix(base_str, match, matchlen))
goto match_wildcards;

if (!ps->recursive || ps->max_depth == -1)
Expand Down

0 comments on commit 6de9691

Please sign in to comment.