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:
Bee Red
2014-02-05 01:59:31 +01:00
parent b54970344d
commit 55fbbdd082
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -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;
-1
View File
@@ -33,7 +33,6 @@
#define L_NET 0x80
#define LOGTXT "INF, NOT, WAR, ERR, DBG, EBH, EBS, NET, ALL"
static const char *logtxt[] = {"INF","NOT","WAR","ERR","DBG","EBH","EBS","NET"};
#define err_if(exp) \
if (exp) { log_print(L_ERR, "%s: %d: %s: Error %s", \