summaryrefslogtreecommitdiffstats
path: root/omdiscard.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-26 09:31:50 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-26 09:31:50 +0000
commit1b1229cd1e76ee43b8fb75466dd80a2c72b54136 (patch)
tree3af783f24c4ad2272ba06656d8b02d7a0fa9f124 /omdiscard.c
parentb0f7302011f1bcc298c7a78ed3bb3f500893e70a (diff)
downloadrsyslog-1b1229cd1e76ee43b8fb75466dd80a2c72b54136.tar.gz
rsyslog-1b1229cd1e76ee43b8fb75466dd80a2c72b54136.tar.xz
rsyslog-1b1229cd1e76ee43b8fb75466dd80a2c72b54136.zip
- changed doAction() interface to include module data pointer
- removed references to f_un from omusrmsg.c - changed module template for parseSelectorAct() [code reduction, consitency]
Diffstat (limited to 'omdiscard.c')
-rw-r--r--omdiscard.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/omdiscard.c b/omdiscard.c
index 0dbdc6d5..52f1b938 100644
--- a/omdiscard.c
+++ b/omdiscard.c
@@ -75,9 +75,8 @@ ENDfreeInstance
BEGINparseSelectorAct
- uchar *p;
CODESTARTparseSelectorAct
- pModData = NULL; /* this action does not have any instance data */
+ pData = NULL; /* this action does not have any instance data */
p = *pp;
if(*p == '~') {
@@ -87,11 +86,6 @@ CODESTARTparseSelectorAct
} else {
iRet = RS_RET_CONFLINE_UNPROCESSED;
}
-
- if(iRet == RS_RET_OK) {
- *ppModData = pModData;
- *pp = p;
- }
ENDparseSelectorAct