Signed-off-by: Steve Dickson <steved@redhat.com>
hint.ai_family = AF_INET6;
#endif /* IPV6_SUPPORTED */
else {
hint.ai_family = AF_INET6;
#endif /* IPV6_SUPPORTED */
else {
- xlog(L_ERROR, "Unrecognized bind address family: %s",
+ xlog(D_GENERAL, "Unrecognized bind address family: %s",
nconf->nc_protofmly);
return NULL;
}
nconf->nc_protofmly);
return NULL;
}
else if (strcmp(nconf->nc_proto, NC_TCP) == 0)
hint.ai_protocol = (int)IPPROTO_TCP;
else {
else if (strcmp(nconf->nc_proto, NC_TCP) == 0)
hint.ai_protocol = (int)IPPROTO_TCP;
else {
- xlog(L_ERROR, "Unrecognized bind address protocol: %s",
+ xlog(D_GENERAL, "Unrecognized bind address protocol: %s",
nconf->nc_proto);
return NULL;
}
(void)snprintf(buf, sizeof(buf), "%u", port);
error = getaddrinfo(NULL, buf, &hint, &ai);
nconf->nc_proto);
return NULL;
}
(void)snprintf(buf, sizeof(buf), "%u", port);
error = getaddrinfo(NULL, buf, &hint, &ai);
- switch (error != 0) {
- case 0:
- return ai;
- case EAI_SYSTEM:
- xlog(L_ERROR, "Failed to construct bind address: %m");
- break;
- default:
xlog(L_ERROR, "Failed to construct bind address: %s",
gai_strerror(error));
xlog(L_ERROR, "Failed to construct bind address: %s",
gai_strerror(error));