From 3cac8f89459317626d521904d85fcb8267671c78 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 28 Dec 2020 23:28:11 +0100 Subject: fix log linker error --- src/log.c | 3 +++ src/log.h | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/log.c b/src/log.c index 5522670..884492e 100644 --- a/src/log.c +++ b/src/log.c @@ -5,6 +5,9 @@ #include "log.h" +unsigned int log_loglevel; +int log_fd; + const char* log_loglevel_str[5] = { "---", "ERROR", diff --git a/src/log.h b/src/log.h index 81cea3d..ecbb9e9 100644 --- a/src/log.h +++ b/src/log.h @@ -18,10 +18,10 @@ #define _LOG_NOTE 3 #define _LOG_DEBUG 4 -unsigned int log_loglevel; -int log_fd; +extern unsigned int log_loglevel; +extern int log_fd; -const char* log_loglevel_str[5]; +extern const char* log_loglevel_str[5]; #define LOGPRINTF(l,...) {\ if((l) <= log_loglevel){\ -- cgit v1.2.3