From 65ab4c2ed841452eca21b15ab09169da392d3a4c Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Tue, 28 Jun 2011 21:15:43 -0700 Subject: [PATCH] Use socklen_t rather than int for the length of the socket address. --- tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcp.c b/tcp.c index b8f2b67..89ebff2 100644 --- a/tcp.c +++ b/tcp.c @@ -50,7 +50,7 @@ int listensock(int port) { int sock, newsock; struct sockaddr_in saddr; - int saddrlen; + socklen_t saddrlen; int on; if ((sock=socket(AF_INET, SOCK_STREAM, 0))==-1) { -- 2.39.5