summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-10-19 12:54:38 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-10-19 12:54:38 +0200
commited36822e37b3328dc52c70f96c0a099f224edc1a (patch)
treed271ea51301cac4daddaa482a4f9ff6e27b145df /plugins
parent0972943f5265dca1f56dcb25bd361d40040bef87 (diff)
parent0a24b3afc093e16038da170458e2ecb68b363bdd (diff)
downloadrsyslog-ed36822e37b3328dc52c70f96c0a099f224edc1a.tar.gz
rsyslog-ed36822e37b3328dc52c70f96c0a099f224edc1a.tar.xz
rsyslog-ed36822e37b3328dc52c70f96c0a099f224edc1a.zip
Merge branch 'v4-stable' into v5-stable
Conflicts: configure.ac runtime/cfsysline.c tools/ompipe.c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/imklog/bsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/imklog/bsd.c b/plugins/imklog/bsd.c
index b7899353..0a4c7cd4 100644
--- a/plugins/imklog/bsd.c
+++ b/plugins/imklog/bsd.c
@@ -86,7 +86,7 @@ static int fklog = -1; /* /dev/klog */
static uchar *GetPath(void)
{
- return pszPath ? pszPath : _PATH_KLOG;
+ return pszPath ? pszPath : (uchar*) _PATH_KLOG;
}
/* open the kernel log - will be called inside the willRun() imklog
@@ -97,7 +97,7 @@ klogWillRun(void)
{
DEFiRet;
- fklog = open(GetPath(), O_RDONLY, 0);
+ fklog = open((char*)GetPath(), O_RDONLY, 0);
if (fklog < 0) {
dbgprintf("can't open %s (%d)\n", GetPath(), errno);
iRet = RS_RET_ERR; // TODO: better error code
@@ -153,7 +153,7 @@ readklog(void)
break;
}
- for (p = pRcv; (q = strchr(p, '\n')) != NULL; p = q + 1) {
+ for (p = (char*)pRcv; (q = strchr(p, '\n')) != NULL; p = q + 1) {
*q = '\0';
Syslog(LOG_INFO, (uchar*) p);
}