SF.net SVN: nagiosplug: [1884] nagiosplug/trunk/plugins-root/check_icmp.c
| Newsgroups | gmane.network.nagios.plugins.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 1884
http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1884&view=rev
Author: hweiss
Date: 2007-12-21 06:19:08 -0800 (Fri, 21 Dec 2007)
Log Message:
-----------
Fix INADDR_NONE value (for systems which don't define it).
Modified Paths:
--------------
nagiosplug/trunk/plugins-root/check_icmp.c
Modified: nagiosplug/trunk/plugins-root/check_icmp.c
===================================================================
--- nagiosplug/trunk/plugins-root/check_icmp.c 2007-12-21 14:17:29 UTC (rev 1883)
+++ nagiosplug/trunk/plugins-root/check_icmp.c 2007-12-21 14:19:08 UTC (rev 1884)
@@ -84,7 +84,7 @@
# define MAXTTL 255
#endif
#ifndef INADDR_NONE
-# define INADDR_NONE 0xffffffU
+# define INADDR_NONE (in_addr_t)(-1)
#endif
#ifndef SOL_IP
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/