gai_error
struct gai_error *g;
int gai_error;
gai_error = getaddr(host, sin);
if (gai_error) {
xo_warnx("%s: %s", host, gai_strerror(gai_error));
int gai_error = getaddrinfo(host, NULL, &hints, &res);
if (gai_error != 0)
return (gai_error);
int gai_error;
gai_error = getaddr(host, sin);
if (gai_error) {
xo_warnx("%s: %s", host, gai_strerror(gai_error));
int gai_error;
gai_error = getaddr(host, sin);
if (gai_error) {
xo_warnx("%s: %s", host, gai_strerror(gai_error));
int gai_error = getaddr(host, &dst);
if (gai_error) {
xo_warnx("%s: %s", host, gai_strerror(gai_error));