From 432934b3dd2f5b2802a76f568b634c01a382e4a8 Mon Sep 17 00:00:00 2001 From: Milan Bartos Date: Mon, 17 Sep 2012 10:14:45 +0200 Subject: Remove unnecessary config options in imkmsg modified: plugins/imkmsg/imkmsg.c modified: plugins/imkmsg/kmsg.c --- plugins/imkmsg/kmsg.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'plugins/imkmsg/kmsg.c') diff --git a/plugins/imkmsg/kmsg.c b/plugins/imkmsg/kmsg.c index 9f1de60f..9ad98da4 100644 --- a/plugins/imkmsg/kmsg.c +++ b/plugins/imkmsg/kmsg.c @@ -134,11 +134,6 @@ submitSyslog(uchar *buf) } -static uchar *GetPath(modConfData_t *pModConf) -{ - return pModConf->pszPath ? pModConf->pszPath : (uchar*) _PATH_KLOG; -} - /* open the kernel log - will be called inside the willRun() imkmsg entry point */ rsRetVal @@ -148,10 +143,10 @@ klogWillRun(modConfData_t *pModConf) int r; DEFiRet; - fklog = open((char*)GetPath(pModConf), O_RDONLY, 0); + fklog = open(_PATH_KLOG, O_RDONLY, 0); if (fklog < 0) { imkmsgLogIntMsg(RS_RET_ERR_OPEN_KLOG, "imkmsg: cannot open kernel log(%s): %s.", - GetPath(pModConf), rs_strerror_r(errno, errmsg, sizeof(errmsg))); + _PATH_KLOG, rs_strerror_r(errno, errmsg, sizeof(errmsg))); ABORT_FINALIZE(RS_RET_ERR_OPEN_KLOG); } -- cgit v1.2.3