[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: add return values to event handler override change

git at icinga.org git at icinga.org
Fri Sep 17 16:40:25 CEST 2010


Module: icinga-core
Branch: mfriedrich/core
Commit: 676a95a3604606c31386c143895e10dccbfeb61e
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=676a95a3604606c31386c143895e10dccbfeb61e

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Fri Sep 17 16:39:34 2010 +0200

add return values to event handler override change

void => int needs return; => return OK/ERROR;

---

 base/broker.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/base/broker.c b/base/broker.c
index 6771eca..d6ce33b 100644
--- a/base/broker.c
+++ b/base/broker.c
@@ -184,10 +184,10 @@ int broker_event_handler(int type, int flags, int attr, int eventhandler_type, v
 	int return_code=OK;
 
 	if(!(event_broker_options & BROKER_EVENT_HANDLERS))
-		return;
+		return OK;
 	
 	if(data==NULL)
-		return;
+		return ERROR;
 
 	/* get command name/args */
 	if(cmd!=NULL){





More information about the icinga-checkins mailing list