From 9ee94f8777d3b8e57911814cd07028115dc5e466 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Fri, 9 May 2014 21:29:07 +0200 Subject: [PATCH] WINGs: removed unused variable in syslog messaging code As pointed by the commpiler, the variable 'syslog_prefix' is not used in the code, so it is removed. Signed-off-by: Christophe CURIS --- WINGs/error.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/WINGs/error.c b/WINGs/error.c index d61621fb..739fa5e7 100644 --- a/WINGs/error.c +++ b/WINGs/error.c @@ -74,7 +74,6 @@ void __wmessage(const char *func, const char *file, int line, int type, const ch int truncated = 0; #ifdef HAVE_SYSLOG int syslog_priority = LOG_INFO; - const char *syslog_prefix = "INFO"; #endif if (linemax == 0) { @@ -107,21 +106,18 @@ void __wmessage(const char *func, const char *file, int line, int type, const ch strncat(buf, _("fatal: "), linemax - 1 - strlen(buf)); #ifdef HAVE_SYSLOG syslog_priority = LOG_CRIT; - syslog_prefix = "FATAL"; #endif break; case WMESSAGE_TYPE_ERROR: strncat(buf, _("error: "), linemax - 1 - strlen(buf)); #ifdef HAVE_SYSLOG syslog_priority = LOG_ERR; - syslog_prefix = "ERROR"; #endif break; case WMESSAGE_TYPE_WARNING: strncat(buf, _("warning: "), linemax - 1 - strlen(buf)); #ifdef HAVE_SYSLOG syslog_priority = LOG_WARNING; - syslog_prefix = "WARNING"; #endif break; case WMESSAGE_TYPE_MESSAGE: -- 2.11.4.GIT