]> jfr.im git - irc/atheme/atheme-contrib-modules.git/commitdiff
gen_listenerdemo.c: a few fixups
authorAaron Jones <redacted>
Sat, 30 Jun 2018 16:24:46 +0000 (16:24 +0000)
committerAaron Jones <redacted>
Sat, 30 Jun 2018 16:24:46 +0000 (16:24 +0000)
- Make private variables compilation-unit-static

gen_listenerdemo.c

index efaed46cea41b731fdd880b19f7cad6d29a7fbe9..d17f49caeeb0470ed05d394dd38f4ca7a538047c 100644 (file)
@@ -8,7 +8,7 @@
 #include "atheme-compat.h"
 #include "datastream.h"
 
-connection_t *listener;
+static connection_t *listener = NULL;
 
 static int
 my_read(connection_t * cptr, char *buf)