From dc74186b5ad1949c4beca19dfdcb652dce36dbc9 Mon Sep 17 00:00:00 2001 From: lotodore Date: Wed, 24 Oct 2007 23:24:57 +0000 Subject: [PATCH] Fixed syslog stuff. --- src/core/loghelper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/loghelper.h b/src/core/loghelper.h index b7f21a3d..df8d35a5 100644 --- a/src/core/loghelper.h +++ b/src/core/loghelper.h @@ -31,7 +31,7 @@ { \ std::ostringstream outStream; \ outStream << e << std::endl; \ - syslog(LOG_ERR, "%s", outStream.str()); \ + syslog(LOG_ERR, "%s", outStream.str().c_str()); \ } \ while(false) #define LOG_MSG(e) \ @@ -39,7 +39,7 @@ { \ std::ostringstream outStream; \ outStream << e << std::endl; \ - syslog(LOG_INFO, "%s", outStream.str()); \ + syslog(LOG_INFO, "%s", outStream.str().c_str()); \ } \ while(false) #endif