send-pack.c: mark a file-local function static

Commit f2c681cf ("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>

Ramsay Jones committed Jan 5, 2014 at 23:55 UTC 16a2743cd08c74d71b17e663c05c878fddffa03c
1 file changed +1 -1
send-pack.c
+1 -1
@@ -183,7 +183,7 @@ static int advertise_shallow_grafts_cb(const struct commit_graft *graft, void *c
183 return 0;
184 }
185
186 -void advertise_shallow_grafts_buf(struct strbuf *sb)
186 +static void advertise_shallow_grafts_buf(struct strbuf *sb)
187 {
188 if (!is_repository_shallow())
189 return;