Commit 6264fc9c authored by Pekka Pessi's avatar Pekka Pessi

Silenced warning in su_addrinfo.c.

darcs-hash:20051130152538-65a35-d232ae83a5052ef15d747d752403fe7b4e57e6b4.gz
parent d40ad7e6
......@@ -355,7 +355,7 @@ getaddrinfo(hostname, servname, hints, res)
if ((sp = getservbyname(servname, proto)) == NULL)
ERR(EAI_SERVICE);
port = sp->s_port;
if (pai->ai_socktype == GAI_ANY)
if (pai->ai_socktype == GAI_ANY) {
if (strcmp(sp->s_proto, "udp") == 0) {
pai->ai_socktype = SOCK_DGRAM;
pai->ai_protocol = IPPROTO_UDP;
......@@ -364,6 +364,7 @@ getaddrinfo(hostname, servname, hints, res)
pai->ai_protocol = IPPROTO_TCP;
} else
ERR(EAI_PROTOCOL); /*xxx*/
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment