* canon-host.c (canon-host): Append trailing "," to 0 in
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 24 Jun 2005 17:30:33 +0000 (17:30 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 24 Jun 2005 17:30:33 +0000 (17:30 +0000)
initializer of struct addrinfo, as an indication that we don't
care how many members the structure has.

lib/ChangeLog
lib/canon-host.c

index 3e684232f1e095aece3248c94491d162bc995935..f3a85a21d15abc0415b0ebecbfc1326d5df5f929 100644 (file)
@@ -1,3 +1,9 @@
+2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * canon-host.c (canon-host): Append trailing "," to 0 in
+       initializer of struct addrinfo, as an indication that we don't
+       care how many members the structure has.
+
 2005-06-24  Derek Price  <derek@ximbiot.com>
        and Bruno Haible  <bruno@clisp.org>
 
index dd1f88b0b4ffb622b4ea43022c22467fdedfd904..0d469ba1a48164bb700f28d23a1c8d32eb3bfa94 100644 (file)
@@ -1,6 +1,6 @@
 /* Host name canonicalization
 
-   Copyright (C) 1995, 1999, 2000, 2002, 2003, 2004 Free Software
+   Copyright (C) 1995, 1999, 2000, 2002, 2003, 2004, 2005 Free Software
    Foundation, Inc.
 
    Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -54,7 +54,7 @@ canon_host (char const *host)
 
 #if HAVE_GETADDRINFO
   {
-    struct addrinfo hint = { 0 };
+    struct addrinfo hint = { 0, };
     struct addrinfo *res = NULL;
     hint.ai_flags = AI_CANONNAME;
     if (getaddrinfo (host, NULL, &hint, &res) == 0)