]> the.earth.li Git - sersniff.git/commitdiff
Use socklen_t rather than int for the length of the socket address.
authorJonathan McDowell <noodles@earth.li>
Wed, 29 Jun 2011 04:15:43 +0000 (21:15 -0700)
committerJonathan McDowell <noodles@earth.li>
Wed, 29 Jun 2011 04:15:43 +0000 (21:15 -0700)
tcp.c

diff --git a/tcp.c b/tcp.c
index b8f2b67064f6ca4f757d8ef22252e1767ca2bcf9..89ebff2290978c92290c384ecb41ce7e5a76a64f 100644 (file)
--- 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) {