From: Jonathan McDowell Date: Wed, 29 Jun 2011 04:15:43 +0000 (-0700) Subject: Use socklen_t rather than int for the length of the socket address. X-Git-Tag: sersniff-0.0.5~2 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=65ab4c2ed841452eca21b15ab09169da392d3a4c;p=sersniff.git Use socklen_t rather than int for the length of the socket address. --- 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) {