windows build fixes.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10211 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2008-10-31 18:22:00 +00:00
parent def5574449
commit 86e4283ade
3 changed files with 15 additions and 16 deletions

View File

@@ -1071,7 +1071,7 @@ SWITCH_DECLARE(char *) get_addr(char *buf, switch_size_t len, struct sockaddr *s
switch_assert(buf);
*buf = '\0';
if (sa) {
getnameinfo(sa, salen, buf, len, NULL, 0, NI_NUMERICHOST);
getnameinfo(sa, salen, buf, (socklen_t)len, NULL, 0, NI_NUMERICHOST);
}
return buf;
}