Skip to content

Commit

Permalink
send-pack.c: mark a file-local function static
Browse files Browse the repository at this point in the history
Commit f2c681c ("send-pack: support pushing from a shallow clone
via http", 05-12-2013) adds the 'advertise_shallow_grafts_buf'
function as an external symbol.

Noticed by sparse. ("'advertise_shallow_grafts_buf' was not declared.
Should it be static?")

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Ramsay Jones authored and gitster committed Jan 6, 2014
1 parent 82fba2b commit 16a2743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion send-pack.c
Expand Up @@ -183,7 +183,7 @@ static int advertise_shallow_grafts_cb(const struct commit_graft *graft, void *c
return 0;
}

void advertise_shallow_grafts_buf(struct strbuf *sb)
static void advertise_shallow_grafts_buf(struct strbuf *sb)
{
if (!is_repository_shallow())
return;
Expand Down

0 comments on commit 16a2743

Please sign in to comment.