one more update to ip_addr()
authoraland <aland>
Fri, 6 Oct 2000 15:57:06 +0000 (15:57 +0000)
committeraland <aland>
Fri, 6 Oct 2000 15:57:06 +0000 (15:57 +0000)
src/lib/misc.c

index a2c97c6..a36adce 100644 (file)
@@ -64,7 +64,7 @@ uint32_t ip_getaddr(const char *host)
        struct hostent  *hp;
        uint32_t         a;
 
-       if ((a = ip_addr(host)) != 0)
+       if ((a = ip_addr(host)) != INADDR_NONE)
                return a;
 
        if ((hp = gethostbyname(host)) == NULL)