* getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 18 Sep 2006 18:07:04 +0000 (18:07 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 18 Sep 2006 18:07:04 +0000 (18:07 +0000)
that prevented coreutils 6.1 from building.  Problem reported
by Petter Reinholdtsen.

lib/ChangeLog
lib/getaddrinfo.c

index 983ffabdb78cd0fccc5bfa2686e04b6ab7553c29..0057183839fba70f07b6f9b30463d0323f2c6df4 100644 (file)
@@ -1,3 +1,9 @@
+2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
+       that prevented coreutils 6.1 from building.  Problem reported
+       by Petter Reinholdtsen.
+
 2006-09-18  Jim Meyering  <jim@meyering.net>
 
        * savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
index 3c6992a6f90eb84a99f4537ac7833ed0b547bb5a..ef6fbbc1aab4dd34200c804a4a9d31b0e04d783c 100644 (file)
@@ -167,7 +167,7 @@ getaddrinfo (const char *restrict nodename,
        return EAI_NONAME;
 
 #ifdef HAVE_IPV6
-      nodename = (hint->ai_family == AF_INET6) ? "::" : "0.0.0.0";
+      nodename = (hints->ai_family == AF_INET6) ? "::" : "0.0.0.0";
 #else
       nodename = "0.0.0.0";
 #endif