diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-12-28 23:28:11 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-12-28 23:28:11 +0100 |
commit | 3cac8f89459317626d521904d85fcb8267671c78 (patch) | |
tree | c531ab1e8a534661e0cf6b95717c707f775c35b3 /src | |
parent | bd8f280af2db0663f15ced2e95cb26a07a1560c4 (diff) | |
download | dns-3cac8f89459317626d521904d85fcb8267671c78.tar.gz |
fix log linker error
Diffstat (limited to 'src')
-rw-r--r-- | src/log.c | 3 | ||||
-rw-r--r-- | src/log.h | 6 |
2 files changed, 6 insertions, 3 deletions
@@ -5,6 +5,9 @@ #include "log.h" +unsigned int log_loglevel; +int log_fd; + const char* log_loglevel_str[5] = { "---", "ERROR", @@ -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){\ |