From 08eec9e63413ba993c002d329912a434038fdf7d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 24 Jun 2005 17:30:33 +0000 Subject: [PATCH] * 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. --- lib/ChangeLog | 6 ++++++ lib/canon-host.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 3e684232f1..f3a85a21d1 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2005-06-24 Paul Eggert + + * 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 and Bruno Haible diff --git a/lib/canon-host.c b/lib/canon-host.c index dd1f88b0b4..0d469ba1a4 100644 --- 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 @@ -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) -- 2.30.2