Skip to content

Commit

Permalink
grep.c: make two symbols really file-scope static this time
Browse files Browse the repository at this point in the history
Adding a declaration at the beginning is not sufficient for obvious
reasons. The definition has to be made static.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
gitster committed Sep 20, 2012
1 parent 39f2e01 commit 3083301
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grep.c
Expand Up @@ -1469,7 +1469,7 @@ static int grep_source_load_file(struct grep_source *gs)
return 0;
}

int grep_source_load(struct grep_source *gs)
static int grep_source_load(struct grep_source *gs)
{
if (gs->buf)
return 0;
Expand Down Expand Up @@ -1497,7 +1497,7 @@ void grep_source_load_driver(struct grep_source *gs)
grep_attr_unlock();
}

int grep_source_is_binary(struct grep_source *gs)
static int grep_source_is_binary(struct grep_source *gs)
{
grep_source_load_driver(gs);
if (gs->driver->binary != -1)
Expand Down

0 comments on commit 3083301

Please sign in to comment.