mirror of
https://github.com/git/git.git
synced 2024-11-23 18:05:29 +08:00
socklen_t is unsigned int on most Linux platforms
This commit is contained in:
parent
1b4713fb9e
commit
7626e49e9f
2
daemon.c
2
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user