Skip to contentSkip to conversation

receive-pack.c: mark file local symbols as static

PATCH New Ramsay Jones 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 receive-pack.c: mark file local symbols as static

Commit 8796e182 ("receive-pack.c: use a single transaction when atomic-push is negotiated", 21-10-2014) added the 'transaction' and 'err' variables as external symbols.

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

---

Hi Ronnie,

If you need to re-roll your 'rs/ref-transaction-send-pack' branch, could you please squash this into the re-rolled version of commit 8796e182.

Thanks!

ATB,
Ramsay Jones

 builtin/receive-pack.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
builtin/receive-pack.c +2 -2
index 030698c..7f6d814 100644
@@ -68,8 +68,8 @@ static const char *NONCE_SLOP = "SLOP";
 static const char *nonce_status;
 static long nonce_stamp_slop;
 static unsigned long nonce_stamp_slop_limit;
-struct strbuf err = STRBUF_INIT;
-struct transaction *transaction;
+static struct strbuf err = STRBUF_INIT;
+static struct transaction *transaction;
 
 static enum deny_action parse_deny_action(const char *var, const char *value)
 {
Signature · 1 line
2.1.0