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 |
{ |
{ |