temp_service is already equals to event->event_data.
the same is valid for temp_host.
ok? comments?
===================================================================
--- base/events.c (revision 2144)
+++ base/events.c (working copy)
@@ -1081,7 +1081,6 @@
log_debug_info(DEBUGL_EVENTS, 0, "** Service Check Event ==> Host: '%s', Service: '%s', Options: %d, Latency: %f sec\n", temp_service->host_name, temp_service->description, event->event_options, latency);
/* run the service check */
- temp_service = (service *)event->event_data;
run_scheduled_service_check(temp_service, event->event_options, latency);
break;
@@ -1092,7 +1091,6 @@
log_debug_info(DEBUGL_EVENTS, 0, "** Host Check Event ==> Host: '%s', Options: %d, Latency: %f sec\n", temp_host->name, event->event_options, latency);
/* run the host check */
- temp_host = (host *)event->event_data;
perform_scheduled_host_check(temp_host, event->event_options, latency);
break;
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]