From 92f5bdce141b56230db5d911e574434492ff5ea6 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Sat, 31 May 2008 19:11:25 +0530 Subject: [PATCH] Use socklen_t for sizeof sockaddr_in --- src/sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sock.c b/src/sock.c index 3b55cdf..6626431 100644 --- a/src/sock.c +++ b/src/sock.c @@ -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);