1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 12:00:31 +01:00

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 <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2014-05-09 21:29:07 +02:00
committed by Carlos R. Mafra
parent f5167ae12d
commit 9ee94f8777

View File

@@ -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: