socklen_t is unsigned int on most Linux platforms
authorH. Peter Anvin <hpa@smyrno.hos.anvin.org>
Fri, 30 Sep 2005 17:48:21 +0000 (10:48 -0700)
committerH. Peter Anvin <hpa@smyrno.hos.anvin.org>
Fri, 30 Sep 2005 17:48:21 +0000 (10:48 -0700)
daemon.c

index 6298f53..fc5e1c3 100644 (file)
--- a/daemon.c
+++ b/daemon.c
@@ -496,7 +496,7 @@ static int service_loop(int socknum, int *socklist)
                for (i = 0; i < socknum; i++) {
                        if (pfd[i].revents & POLLIN) {
                                struct sockaddr_storage ss;
-                               int sslen = sizeof(ss);
+                               unsigned int sslen = sizeof(ss);
                                int incoming = accept(pfd[i].fd, (struct sockaddr *)&ss, &sslen);
                                if (incoming < 0) {
                                        switch (errno) {