From dbeb3bd21d7d8171a92c2bcbedd24f25190c4230 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 28 Aug 2021 16:26:45 -0400 Subject: Declare producer static --- ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ring.c b/ring.c index 0a46b09..ed2c078 100644 --- a/ring.c +++ b/ring.c @@ -53,7 +53,7 @@ void ringAlloc(size_t len) { ring.len = len; } -size_t producer; +static size_t producer; void ringProduce(const char *line) { size_t i = producer++ & (ring.len - 1); -- cgit 1.4.1