Explorar o código

Fix INADDR_NONE value (for systems which don't define it).

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1884 f882894a-f735-0410-b71e-b25c423dba1c
Holger Weiss %!s(int64=18) %!d(string=hai) anos
pai
achega
1544007dcf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins-root/check_icmp.c

+ 1 - 1
plugins-root/check_icmp.c

@@ -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