util: fix sockaddr function naming

This commit is contained in:
Miroslav Lichvar
2014-10-03 10:15:18 +02:00
parent e05b687009
commit 2f738d5805
6 changed files with 12 additions and 12 deletions

View File

@@ -120,7 +120,7 @@ DNS_IPAddress2Name(IPAddr *ip_addr, char *name, int len)
socklen_t slen;
char hbuf[NI_MAXHOST];
slen = UTI_IPAndPort2Sockaddr(ip_addr, 0, (struct sockaddr *)&in6);
slen = UTI_IPAndPortToSockaddr(ip_addr, 0, (struct sockaddr *)&in6);
if (!getnameinfo((struct sockaddr *)&in6, slen, hbuf, sizeof (hbuf), NULL, 0, 0))
result = hbuf;
#else