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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

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

Post 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: ricardo.maraschini@opservices.com.br
Locked