diff --git a/log.c b/log.c index 1ecf6c8..f60b374 100644 --- a/log.c +++ b/log.c @@ -33,6 +33,8 @@ #include "options.h" #include "log.h" +FILE *logfile; + extern struct spd_options options; void LOG(int level, char *format, ...) diff --git a/log.h b/log.h index 23fc2f6..bce8dba 100644 --- a/log.h +++ b/log.h @@ -22,7 +22,7 @@ #ifndef LOG_H #define LOG_H -FILE *logfile; +extern FILE *logfile; void LOG(int level, char *format, ...); #define FATAL(status, format...) { LOG(0, format); exit(status); }