Skip to content

Commit

Permalink
socklen_t is unsigned int on most Linux platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
H. Peter Anvin committed Sep 30, 2005
1 parent 1b4713f commit 7626e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7626e49

Please sign in to comment.