summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-07-09 17:19:21 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-07-09 17:19:21 +0200
commit6fde78cb744b22eb5790d43297acab249ca0e7fa (patch)
tree290dea7d09efc76e92eb18329f05913f1918957e /action.c
parentab40107149038898ef24479a6911d9cd7770a56c (diff)
downloadrsyslog-6fde78cb744b22eb5790d43297acab249ca0e7fa.tar.gz
rsyslog-6fde78cb744b22eb5790d43297acab249ca0e7fa.tar.xz
rsyslog-6fde78cb744b22eb5790d43297acab249ca0e7fa.zip
small performance improvement and cleanup
optimized substring processing, should bring a small enhancement when forwarding with the default forwarding templates. Also did some uchar cleanup in msg.c (thus so many changes, in reality they are few...).
Diffstat (limited to 'action.c')
-rw-r--r--action.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/action.c b/action.c
index f21feea6..bcb23659 100644
--- a/action.c
+++ b/action.c
@@ -43,6 +43,7 @@
#include "srUtils.h"
#include "errmsg.h"
#include "datetime.h"
+#include "unicode-helper.h"
/* forward definitions */
rsRetVal actionCallDoAction(action_t *pAction, msg_t *pMsg);
@@ -780,7 +781,7 @@ doActionCallAction(action_t *pAction, msg_t *pMsg)
/* suppress duplicate messages */
if ((pAction->f_ReduceRepeated == 1) && pAction->f_pMsg != NULL &&
(pMsg->msgFlags & MARK) == 0 && getMSGLen(pMsg) == getMSGLen(pAction->f_pMsg) &&
- !strcmp(getMSG(pMsg), getMSG(pAction->f_pMsg)) &&
+ !ustrcmp(getMSG(pMsg), getMSG(pAction->f_pMsg)) &&
!strcmp(getHOSTNAME(pMsg), getHOSTNAME(pAction->f_pMsg)) &&
!strcmp(getPROCID(pMsg, LOCK_MUTEX), getPROCID(pAction->f_pMsg, LOCK_MUTEX)) &&
!strcmp(getAPPNAME(pMsg, LOCK_MUTEX), getAPPNAME(pAction->f_pMsg, LOCK_MUTEX))) {