From 7626e49e9f04ac386965d16ae11e130e20ebd518 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 30 Sep 2005 10:48:21 -0700 Subject: [PATCH] socklen_t is unsigned int on most Linux platforms --- daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.c b/daemon.c index 6298f53fc..fc5e1c303 100644 --- 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) { -- 2.30.2