[Nagiosplug-checkins] nagiosplug/plugins check_ping.c,1.60,1.61

Holger Weiss hweiss at users.sourceforge.net
Mon Apr 23 09:30:49 CEST 2007


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs16:/tmp/cvs-serv25031

Modified Files:
	check_ping.c 
Log Message:
#ifdef can only test a single macro, not an expression.

Index: check_ping.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ping.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- check_ping.c	12 Mar 2007 10:51:05 -0000	1.60
+++ check_ping.c	23 Apr 2007 07:30:47 -0000	1.61
@@ -105,7 +105,7 @@
 
 	/* If ./configure finds ping has timeout values, set plugin alarm slightly
 	 * higher so that we can use response from command line ping */
-#ifdef PING_PACKETS_FIRST && PING_HAS_TIMEOUT
+#if defined(PING_PACKETS_FIRST) && defined(PING_HAS_TIMEOUT)
 	alarm (timeout_interval + 1);
 #else
 	alarm (timeout_interval);





More information about the Commits mailing list