Mercurial > hg > octave-kai > gnulib-hg
changeset 5934:fe449ec53f0d
* 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.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Fri, 24 Jun 2005 17:30:33 +0000 |
parents | 35504bd557fa |
children | 3caa3cac91fc |
files | lib/ChangeLog lib/canon-host.c |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -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>
--- a/lib/canon-host.c +++ b/lib/canon-host.c @@ -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 @@ #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)