From f109d0708f8858ff9b624174e8cdab5b2d27b603 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 29 Dec 2014 17:49:44 +0000 Subject: [PATCH] - Moved OPT_DEBUG prototype to main.h (where it belongs to) and removed extern.h git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5201 82007160-df01-0410-b94d-b575c5fd34c7 --- src/config.c | 1 - src/dnsbl.c | 2 +- src/irc.c | 1 - src/main.c | 1 - src/main.h | 1 + src/misc.c | 1 - src/opercmd.c | 2 +- src/scan.c | 2 +- src/stats.c | 1 - 9 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/config.c b/src/config.c index 1949402..707c995 100644 --- a/src/config.c +++ b/src/config.c @@ -29,7 +29,6 @@ # include #endif -#include "extern.h" #include "config.h" #include "malloc.h" #include "log.h" diff --git a/src/dnsbl.c b/src/dnsbl.c index a4b0cd1..75278a0 100644 --- a/src/dnsbl.c +++ b/src/dnsbl.c @@ -39,9 +39,9 @@ along with this program; if not, write to the Free Software #include "compat.h" #include "config.h" #include "dnsbl.h" -#include "extern.h" #include "list.h" #include "log.h" +#include "main.h" #include "malloc.h" #include "match.h" #include "scan.h" diff --git a/src/irc.c b/src/irc.c index 3a5bb86..9cf64fd 100644 --- a/src/irc.c +++ b/src/irc.c @@ -62,7 +62,6 @@ #include "scan.h" #include "dnsbl.h" #include "stats.h" -#include "extern.h" #include "options.h" #include "match.h" #include "compat.h" diff --git a/src/main.c b/src/main.c index 7cee08a..d09c33b 100644 --- a/src/main.c +++ b/src/main.c @@ -41,7 +41,6 @@ along with this program; if not, write to the Free Software #include "compat.h" #include "config.h" -#include "extern.h" #include "irc.h" #include "log.h" #include "opercmd.h" diff --git a/src/main.h b/src/main.h index b6489b5..5d8e89e 100644 --- a/src/main.h +++ b/src/main.h @@ -1,5 +1,6 @@ #ifndef MAIN_H #define MAIN_H +extern unsigned int OPT_DEBUG; extern void main_restart(void); #endif /* MAIN_H */ diff --git a/src/misc.c b/src/misc.c index 6ce2947..9406889 100644 --- a/src/misc.c +++ b/src/misc.c @@ -31,7 +31,6 @@ along with this program; if not, write to the Free Software #include "compat.h" #include "config.h" -#include "extern.h" #include "misc.h" diff --git a/src/opercmd.c b/src/opercmd.c index 7603d3d..17e8527 100644 --- a/src/opercmd.c +++ b/src/opercmd.c @@ -34,11 +34,11 @@ along with this program; if not, write to the Free Software #include "options.h" #include "irc.h" #include "log.h" +#include "main.h" #include "misc.h" #include "opercmd.h" #include "scan.h" #include "config.h" -#include "extern.h" #include "malloc.h" #include "list.h" #include "stats.h" diff --git a/src/scan.c b/src/scan.c index 515b166..a4fc184 100644 --- a/src/scan.c +++ b/src/scan.c @@ -57,9 +57,9 @@ #include "opercmd.h" #include "stats.h" #include "dnsbl.h" -#include "extern.h" #include "options.h" #include "negcache.h" +#include "main.h" #include "malloc.h" #include "match.h" #include "scan.h" diff --git a/src/stats.c b/src/stats.c index 225b528..818ae97 100644 --- a/src/stats.c +++ b/src/stats.c @@ -61,7 +61,6 @@ along with this program; if not, write to the Free Software #include "misc.h" #include "stats.h" #include "config.h" -#include "extern.h" #include "opercmd.h" #include "scan.h" #include "stats.h" -- 2.30.2