]> jfr.im git - irc/unrealircd/unrealircd.git/commitdiff
Remove invalid globally declared variables (should be externs).
authorBram Matthys <redacted>
Mon, 11 Jun 2018 06:04:37 +0000 (08:04 +0200)
committerBram Matthys <redacted>
Mon, 11 Jun 2018 06:04:37 +0000 (08:04 +0200)
include/common.h
src/s_svs.c

index 0583457788e9a56a10302d5176aa5681b7c5fd43..d5b9827a26cb2be9bedd61069d272af8626f0052 100644 (file)
@@ -130,7 +130,7 @@ const char *inet_ntop(int, const void *, char *, size_t);
 int inet_pton(int af, const char *src, void *dst);
 #endif
 
-MODVAR int  global_count, max_global_count;
+extern MODVAR int  global_count, max_global_count;
 extern char *myctime(time_t);
 extern char *strtoken(char **, char *, char *);
 
@@ -291,7 +291,7 @@ extern int lu_noninv, lu_inv, lu_serv, lu_oper,
     lu_unknown, lu_channel, lu_lu, lu_lulocal, lu_lserv,
     lu_clu, lu_mlu, lu_cglobalu, lu_mglobalu;
 
-MODVAR TS   now;
+extern MODVAR TS   now;
 
 #ifndef _WIN32
 #if defined(__STDC__)
index 5778021e5ed46890a2a21d56032d9bfbb7315204..3782fbe311e5a5a5660c46856d3853d78d51b592 100644 (file)
@@ -42,8 +42,6 @@
 
 extern ircstats IRCstats;
 
-aConfiguration iConf;
-
 /* Function to return a group of tokens -- codemastr */
 void strrangetok(char *in, char *out, char tok, short first, short last) {
        int i = 0, tokcount = 0, j = 0;