Bryan Drewery 22 лет назад
Родитель
Сommit
00e1dff210
3 измененных файлов с 4 добавлено и 2 удалено
  1. 0 1
      src/debug.h
  2. 2 1
      src/log.c
  3. 2 0
      src/main.h

+ 0 - 1
src/debug.h

@@ -30,7 +30,6 @@
  *    Handy aliases for memory tracking and core dumps
  */
 #ifdef DEBUG_CONTEXT
-#  include "main.h"
 #  define Context               eggContext(__FILE__, __LINE__, NULL)
 #  define ContextNote(note)     eggContextNote(__FILE__, __LINE__, NULL, note)
 #else

+ 2 - 1
src/log.c

@@ -14,11 +14,12 @@
 #include "rfc1459.h"
 #include "users.h"
 #include "misc.h"
+#include "main.h"
 
 extern struct userrec   *userlist;
 extern tand_t           *tandbot;
 extern struct dcc_t     *dcc;
-extern int               debug_output, backgrd, term_z, use_stderr,
+extern int               debug_output, backgrd, term_z, 
 			 dcc_total, loading;
 extern struct dcc_t     *dcc;
 extern time_t		now;

+ 2 - 0
src/main.h

@@ -1,6 +1,8 @@
 #ifndef _MAIN_H
 #define _MAIN_H
 
+extern int use_stderr;
+
 #ifndef MAKING_MODS
 int crontab_exists();
 void crontab_create(int);