[Nagiosplug-checkins] SF.net SVN: nagiosplug: [1884] nagiosplug/trunk/plugins-root/check_icmp.c
hweiss at users.sourceforge.net
hweiss at users.sourceforge.net
Fri Dec 21 15:19:08 CET 2007
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.
More information about the Commits
mailing list