summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-07-01 12:39:57 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-07-01 12:39:57 +0200
commit989d8413a16a1d7ad2ea3ae2ad31c5e9085f6b92 (patch)
treeff9cbfe1aa28962a6b7f2344c0228e1093379d80
parent3f6c73a8b7ff2c6d9c931876d823f2b4ef6bbea2 (diff)
downloadrsyslog-989d8413a16a1d7ad2ea3ae2ad31c5e9085f6b92.tar.gz
rsyslog-989d8413a16a1d7ad2ea3ae2ad31c5e9085f6b92.tar.xz
rsyslog-989d8413a16a1d7ad2ea3ae2ad31c5e9085f6b92.zip
applied ErrLog interface change to ommail
-rw-r--r--plugins/ommail/ommail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ommail/ommail.c b/plugins/ommail/ommail.c
index d4158975..4bbb844a 100644
--- a/plugins/ommail/ommail.c
+++ b/plugins/ommail/ommail.c
@@ -528,11 +528,11 @@ CODESTARTparseSelectorAct
/* TODO: check strdup() result */
if(pszFrom == NULL) {
- errmsg.LogError(NO_ERRCODE, "no sender address given - specify $ActionMailFrom");
+ errmsg.LogError(0, RS_RET_MAIL_NO_FROM, "no sender address given - specify $ActionMailFrom");
ABORT_FINALIZE(RS_RET_MAIL_NO_FROM);
}
if(pszTo == NULL) {
- errmsg.LogError(NO_ERRCODE, "no recipient address given - specify $ActionMailTo");
+ errmsg.LogError(0, RS_RET_MAIL_NO_TO, "no recipient address given - specify $ActionMailTo");
ABORT_FINALIZE(RS_RET_MAIL_NO_TO);
}