/[cvs]/ccvs/lib/canon-host.c
ViewVC logotype

Diff of /ccvs/lib/canon-host.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dprice, Tue Sep 6 04:50:04 2005 UTC revision 1.3 by scjones, Sat Sep 10 18:09:57 2005 UTC
# Line 72  char * Line 72  char *
72  canon_host_r (char const *host, int *cherror)  canon_host_r (char const *host, int *cherror)
73  {  {
74      char *retval = NULL;      char *retval = NULL;
75      static struct addrinfo hints = { .ai_flags = AI_CANONNAME, };      static struct addrinfo hints;
76      struct addrinfo *res = NULL;      struct addrinfo *res = NULL;
77      int status;      int status;
78    
79        hints.ai_flags = AI_CANONNAME;
80      status = getaddrinfo (host, NULL, &hints, &res);      status = getaddrinfo (host, NULL, &hints, &res);
81      if (!status)      if (!status)
82      {      {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26