tMake globals static - vaccinewars - be a doctor and try to vaccinate the world | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit ca825800736f1457ac94750228b5d78cc32f0f2c | |
parent 17ff55f58d6e8debd86d49ce4de59d3e55e039b9 | |
Author: Ben Webb <[email protected]> | |
Date: Sat, 7 Nov 2020 20:33:44 -0800 | |
Make globals static | |
Make globals static to avoid clashing with other | |
compilation units. | |
Diffstat: | |
M src/curses_client/curses_client.c | 2 +- | |
M src/serverside.c | 2 +- | |
2 files changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/src/curses_client/curses_client.c b/src/curses_client/curses_clien… | |
t@@ -62,7 +62,7 @@ const static int MaxMessages = 1000; | |
#ifdef NETWORKING | |
/* Data waiting to be sent to/read from the metaserver */ | |
-CurlConnection MetaConn; | |
+static CurlConnection MetaConn; | |
static enum { | |
CM_SERVER, CM_PROMPT, CM_META, CM_SINGLE | |
diff --git a/src/serverside.c b/src/serverside.c | |
t@@ -112,7 +112,7 @@ GSList *FirstServer = NULL; | |
#ifdef NETWORKING | |
/* Data waiting to be sent to/read from the metaserver */ | |
-CurlConnection MetaConn; | |
+static CurlConnection MetaConn; | |
static GScanner *Scanner; | |