]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/resolve.c
Send "fake '*' key" in "MODE -k" replies
[ngircd-alex.git] / src / ngircd / resolve.c
index 3f99b3a90178ede568e5212352cf78839db6a5f4..01f730cc868a67458e7120cfc6d1e1485b9c4aa8 100644 (file)
@@ -242,7 +242,7 @@ ForwardLookup(const char *hostname, array *IpAddr, int af)
 {
        ng_ipaddr_t addr;
 
-#ifdef HAVE_GETADDRINFO
+#ifdef HAVE_WORKING_GETADDRINFO
        int res;
        struct addrinfo *a, *ai_results;
        static struct addrinfo hints;
@@ -268,7 +268,7 @@ ForwardLookup(const char *hostname, array *IpAddr, int af)
        }
 
        for (a = ai_results; a != NULL; a = a->ai_next) {
-               assert(a->ai_addrlen <= sizeof(addr));
+               assert((size_t)a->ai_addrlen <= sizeof(addr));
 
                if ((size_t)a->ai_addrlen > sizeof(addr))
                        continue;