Code

Fix INADDR_NONE value (for systems which don't define it).
authorHolger Weiss <hweiss@users.sourceforge.net>
Fri, 21 Dec 2007 14:19:08 +0000 (14:19 +0000)
committerHolger Weiss <hweiss@users.sourceforge.net>
Fri, 21 Dec 2007 14:19:08 +0000 (14:19 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1884 f882894a-f735-0410-b71e-b25c423dba1c

plugins-root/check_icmp.c

index 77ddfee0ec77c46f5c6b2a0defa2e3dde37cfda6..1ddc7561947fa633e7d273eebd434f8d9a5afed3 100644 (file)
@@ -84,7 +84,7 @@ const char *email = "nagiosplug-devel@lists.sourceforge.net";
 # define MAXTTL        255
 #endif
 #ifndef INADDR_NONE
-# define INADDR_NONE 0xffffffU
+# define INADDR_NONE (in_addr_t)(-1)
 #endif
 
 #ifndef SOL_IP