mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(canon_host) [HAVE_GETADDRINFO]: Use = { 0, };' to initialize local hint'.
This commit is contained in:
1 parent
534ccf18c2
commit
406929bb9d
2 files changed
+7
-2
No files matched your search
@@ -1,3 +1,9 @@
|
||||
2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* canon-host.c (canon_host) [HAVE_GETADDRINFO]: Use `= { 0, };' to
|
||||
initialize local `hint'. This undoes the previous change, and
|
||||
syncs with gnulib.
|
||||
|
||||
2005-06-23 Jim Meyering <jim@meyering.net>
|
||||
|
||||
* Makefile.am (libcoreutils_a_SOURCES): Remove xreadlink.c
|
||||
|
||||
+1
-2
@@ -54,9 +54,8 @@ canon_host (char const *host)
|
||||
|
||||
#if HAVE_GETADDRINFO
|
||||
{
|
||||
struct addrinfo hint;
|
||||
struct addrinfo hint = { 0, };
|
||||
struct addrinfo *res = NULL;
|
||||
memset (&hint, 0, sizeof hint);
|
||||
hint.ai_flags = AI_CANONNAME;
|
||||
if (getaddrinfo (host, NULL, &hint, &res) == 0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user