Use socklen_t for sizeof sockaddr_in
This commit is contained in:
1 parent
0a16445b69
commit
92f5bdce14
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user