diff options
author | Holger Weiss <hweiss@users.sourceforge.net> | 2007-04-23 07:30:47 (GMT) |
---|---|---|
committer | Holger Weiss <hweiss@users.sourceforge.net> | 2007-04-23 07:30:47 (GMT) |
commit | 27a624dd9f929af1330be508762057fa4fa8a0f5 (patch) | |
tree | b672a0aa8f7d010dbc1f95cff3feb39504c4c6bf /plugins/check_ping.c | |
parent | f100554212a20a2065cd0cbc395d5fb2eec6e715 (diff) | |
download | monitoring-plugins-27a624dd9f929af1330be508762057fa4fa8a0f5.tar.gz |
#ifdef can only test a single macro, not an expression.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1699 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r-- | plugins/check_ping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c index 211f74e..bf726d8 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c | |||
@@ -105,7 +105,7 @@ main (int argc, char **argv) | |||
105 | 105 | ||
106 | /* If ./configure finds ping has timeout values, set plugin alarm slightly | 106 | /* If ./configure finds ping has timeout values, set plugin alarm slightly |
107 | * higher so that we can use response from command line ping */ | 107 | * higher so that we can use response from command line ping */ |
108 | #ifdef PING_PACKETS_FIRST && PING_HAS_TIMEOUT | 108 | #if defined(PING_PACKETS_FIRST) && defined(PING_HAS_TIMEOUT) |
109 | alarm (timeout_interval + 1); | 109 | alarm (timeout_interval + 1); |
110 | #else | 110 | #else |
111 | alarm (timeout_interval); | 111 | alarm (timeout_interval); |