summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@smyrno.hos.anvin.org>2005-09-30 10:48:21 -0700
committerH. Peter Anvin <hpa@smyrno.hos.anvin.org>2005-09-30 10:48:21 -0700
commit7626e49e9f04ac386965d16ae11e130e20ebd518 (patch)
tree35ec395c606a2e5b1e1d6970a3b26ed7c8e204e9 /daemon.c
parent1b4713fb9e6ec614e8dbca90b1a57d5ffa2f3fde (diff)
downloadgit-7626e49e9f04ac386965d16ae11e130e20ebd518.tar.gz
socklen_t is unsigned int on most Linux platforms
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index 6298f53fcf..fc5e1c3037 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) {