Ver código fonte

Use AF_INET6 instead of PF_INET6 in test

Jeremy Soller 6 anos atrás
pai
commit
65aeda1f59
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      tests/netdb/getaddrinfo.c

+ 1 - 1
tests/netdb/getaddrinfo.c

@@ -40,7 +40,7 @@ int main(void) {
 
         printf(
             "IPv%d address: %s (%s)\n",
-            res->ai_family == PF_INET6 ? 6 : 4,
+            res->ai_family == AF_INET6 ? 6 : 4,
             addrstr,
             res->ai_canonname
         );