[PATCH] Unused result var on config.c

Ricardo Maraschini ricardo.maraschini at opservices.com.br
Fri Jun 22 18:52:14 CEST 2012


We are not using the result var anywhere on function pre_flight_circular_check(), so, we just don't need it.

This patch avoid warning 

config.c:2710:6: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]

OK? Comments?


--- base/config.c	(revision 1973)
+++ base/config.c	(working copy)
@@ -2707,7 +2707,6 @@
 	hostdependency *temp_hd = NULL;
 	hostdependency *temp_hd2 = NULL;
 	int found = FALSE;
-	int result = OK;
 	int warnings = 0;
 	int errors = 0;
 
@@ -2725,7 +2724,6 @@
 
 	/* check routes between all hosts */
 	found = FALSE;
-	result = OK;
 
 
 	/* We clean the dsf status from previous check */

------------------------------------------------------------------------------
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/
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list