[PATCH 1/2] events.c: Removed unnecessary variable attribution

Ricardo Jose Maraschini ricardo.maraschini at opservices.com.br
Thu Dec 13 17:26:30 CET 2012


From: Ricardo Jose Maraschini <ricardo.maraschini at opservices.com.br>

Removed attribution of run_event = FALSE because it's
already FALSE.

Signed-off-by: Ricardo Maraschini <ricardo.maraschini at opservices.com.br>
---
 base/events.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/base/events.c b/base/events.c
index fbeb961..d4790f5 100644
--- a/base/events.c
+++ b/base/events.c
@@ -912,8 +912,6 @@ static int should_run_event(timed_event *temp_event)
 			temp_event->run_time = temp_service->next_check;
 			reschedule_event(nagios_squeue, temp_event);
 			update_service_status(temp_service, FALSE);
-
-			run_event = FALSE;
 		}
 	}
 	/* run a few checks before executing a host check... */
@@ -944,7 +942,6 @@ static int should_run_event(timed_event *temp_event)
 			temp_event->run_time = temp_host->next_check;
 			reschedule_event(nagios_squeue, temp_event);
 			update_host_status(temp_host, FALSE);
-			run_event = FALSE;
 		}
 	}
 
-- 
1.7.4.1



------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d




More information about the Developers mailing list