Use socklen_t for sizeof sockaddr_in
This commit is contained in:
parent
0a16445b69
commit
92f5bdce14
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user