summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-02-17 17:53:32 +0100
committerGravatar Martin Szulecki2013-02-17 17:53:32 +0100
commit62de4a3f6f02b7cc3851369dd8b7508056e97788 (patch)
tree066b484737f18a883170baf2e879d768e654e68b
parentbafea81a8378342b5c7f1b85075437e767660d94 (diff)
downloadcsoap-62de4a3f6f02b7cc3851369dd8b7508056e97788.tar.gz
csoap-62de4a3f6f02b7cc3851369dd8b7508056e97788.tar.bz2
Fix broken compilation due to incorrectly named log level constants
-rw-r--r--libcsoap/soap-logging.c14
-rw-r--r--nanohttp/nanohttp-logging.c12
2 files changed, 13 insertions, 13 deletions
diff --git a/libcsoap/soap-logging.c b/libcsoap/soap-logging.c
index 009f75d..07e37ca 100644
--- a/libcsoap/soap-logging.c
+++ b/libcsoap/soap-logging.c
@@ -107,26 +107,26 @@ _soap_log_printf(soap_loglevel_t level, const char *format, ...)
vfprintf(stdout, format, ap);
#ifdef HAVE_SYSLOG_H
- if (_nanohttp_logtype & SOAP_LOG_SYSLOG)
+ if (_soap_logtype & SOAP_LOG_SYSLOG)
{
int syslog_level;
switch (level)
{
- case SOAP_LOGLEVEL_VERBOSE:
- case SOAP_LOGLEVEL_DEBUG:
+ case SOAP_LOG_VERBOSE:
+ case SOAP_LOG_DEBUG:
syslog_level = LOG_DEBUG;
break;
- case SOAP_LOGLEVEL_INFO:
+ case SOAP_LOG_INFO:
syslog_level = LOG_INFO;
break;
- case SOAP_LOGLEVEL_WARN:
+ case SOAP_LOG_WARN:
syslog_level = LOG_WARNING;
break;
- case SOAP_LOGLEVEL_ERROR:
+ case SOAP_LOG_ERROR:
syslog_level = LOG_ERR;
break;
- case SOAP_LOGLEVEL_FATAL:
+ case SOAP_LOG_FATAL:
syslog_level = LOG_CRIT;
break;
}
diff --git a/nanohttp/nanohttp-logging.c b/nanohttp/nanohttp-logging.c
index 45fc01a..ef4151a 100644
--- a/nanohttp/nanohttp-logging.c
+++ b/nanohttp/nanohttp-logging.c
@@ -134,20 +134,20 @@ _nanohttp_log_printf(nanohttp_loglevel_t level, const char *format, ...)
switch (level)
{
- case NANOHTTP_LOGLEVEL_VERBOSE:
- case NANOHTTP_LOGLEVEL_DEBUG:
+ case NANOHTTP_LOG_VERBOSE:
+ case NANOHTTP_LOG_DEBUG:
syslog_level = LOG_DEBUG;
break;
- case NANOHTTP_LOGLEVEL_INFO:
+ case NANOHTTP_LOG_INFO:
syslog_level = LOG_INFO;
break;
- case NANOHTTP_LOGLEVEL_WARN:
+ case NANOHTTP_LOG_WARN:
syslog_level = LOG_WARNING;
break;
- case NANOHTTP_LOGLEVEL_ERROR:
+ case NANOHTTP_LOG_ERROR:
syslog_level = LOG_ERR;
break;
- case NANOHTTP_LOGLEVEL_FATAL:
+ case NANOHTTP_LOG_FATAL:
syslog_level = LOG_CRIT;
break;
}