Page 1 of 1

[Nagios-devel] [PATCH 1/2] events.c: Removed unnecessary variable

Posted: Thu Dec 13, 2012 4:31 pm
by Guest
=46rom: Ricardo Jose Maraschini

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

Signed-off-by: Ricardo Maraschini
---
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 =3D temp_service->next_check;
reschedule_event(nagios_squeue, temp_event);
update_service_status(temp_service, FALSE);
-
- run_event =3D 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 =3D temp_host->next_check;
reschedule_event(nagios_squeue, temp_event);
update_host_status(temp_host, FALSE);
- run_event =3D FALSE;
}
}
=20
--=20
1.7.4.1







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]