Use socklen_t for sizeof sockaddr_in

This commit is contained in:
Mukund Sivaraman 2008-05-31 19:11:25 +05:30
parent 0a16445b69
commit 92f5bdce14

View File

@ -198,7 +198,7 @@ int
getpeer_information(int fd, char* ipaddr, char* string_addr)
{
struct sockaddr_in name;
size_t namelen = sizeof(name);
socklen_t namelen = sizeof(name);
struct hostent* result;
assert(fd >= 0);