X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fcanon-host.c;h=6083e793939fa005e60131af3edd0ca7c1f600a4;hb=ab43907148e80f3895280928c05d4be93875580f;hp=b5aa1b7819a7960522b5180ff7e027e675ebe6f5;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/lib/canon-host.c b/lib/canon-host.c index b5aa1b781..6083e7939 100644 --- a/lib/canon-host.c +++ b/lib/canon-host.c @@ -1,6 +1,6 @@ /* Host name canonicalization - Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2005-2010 Free Software Foundation, Inc. Written by Derek Price . @@ -22,8 +22,7 @@ #include "canon-host.h" #include - -#include "getaddrinfo.h" +#include /* Store the last error for the single-threaded version of this function. */ static int last_cherror; @@ -70,11 +69,11 @@ canon_host_r (char const *host, int *cherror) if (!status) { /* http://lists.gnu.org/archive/html/bug-coreutils/2006-09/msg00300.html - says Darwin 7.9.0 getaddrinfo returns 0 but sets - res->ai_canonname to NULL. */ + says Darwin 7.9.0 getaddrinfo returns 0 but sets + res->ai_canonname to NULL. */ retval = strdup (res->ai_canonname ? res->ai_canonname : host); if (!retval && cherror) - *cherror = EAI_MEMORY; + *cherror = EAI_MEMORY; freeaddrinfo (res); } else if (cherror)