fix: warning move var logtxt[] from log.h to log.c
used -Wall for find warning: 'logtxt' defined but not used [-Wunused-variable] logtxt should only exist in log.c every other include of log.h introduce another logtxt which waste space
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include "log.h"
|
||||
|
||||
static unsigned char loglvl = L_NUL;
|
||||
static const char *logtxt[] = {"INF","NOT","WAR","ERR","DBG","EBH","EBS","NET"};
|
||||
static int logtxtlen = sizeof(logtxt) / sizeof(char*);
|
||||
|
||||
static FILE *logfp = NULL;
|
||||
|
||||
Reference in New Issue
Block a user