Skip to contentSkip to conversation

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

PATCH In review Ramsay Jones 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 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?")

---
 send-pack.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
send-pack.c +1 -1
index 2a199cc..6129b0f 100644
@@ -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;
Signature · 1 line
1.8.5