Uneeded double variable attribution

Ricardo Jose Maraschini ricardo.maraschini at opservices.com.br
Wed Sep 5 00:10:11 CEST 2012


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;
 



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/




More information about the Developers mailing list