зеркало из https://github.com/microsoft/git.git
Remove variables not needed when using poll
This commit is contained in:
Родитель
dc4afa57ce
Коммит
e72456bb67
4
daemon.c
4
daemon.c
|
@ -379,7 +379,6 @@ static int socksetup(int port, int **socklist_p)
|
||||||
{
|
{
|
||||||
int socknum = 0, *socklist = NULL;
|
int socknum = 0, *socklist = NULL;
|
||||||
int maxfd = -1;
|
int maxfd = -1;
|
||||||
fd_set fds_init, fds;
|
|
||||||
char pbuf[NI_MAXSERV];
|
char pbuf[NI_MAXSERV];
|
||||||
|
|
||||||
struct addrinfo hints, *ai0, *ai;
|
struct addrinfo hints, *ai0, *ai;
|
||||||
|
@ -396,8 +395,6 @@ static int socksetup(int port, int **socklist_p)
|
||||||
if (gai)
|
if (gai)
|
||||||
die("getaddrinfo() failed: %s\n", gai_strerror(gai));
|
die("getaddrinfo() failed: %s\n", gai_strerror(gai));
|
||||||
|
|
||||||
FD_ZERO(&fds_init);
|
|
||||||
|
|
||||||
for (ai = ai0; ai; ai = ai->ai_next) {
|
for (ai = ai0; ai; ai = ai->ai_next) {
|
||||||
int sockfd;
|
int sockfd;
|
||||||
int *newlist;
|
int *newlist;
|
||||||
|
@ -436,7 +433,6 @@ static int socksetup(int port, int **socklist_p)
|
||||||
socklist = newlist;
|
socklist = newlist;
|
||||||
socklist[socknum++] = sockfd;
|
socklist[socknum++] = sockfd;
|
||||||
|
|
||||||
FD_SET(sockfd, &fds_init);
|
|
||||||
if (maxfd < sockfd)
|
if (maxfd < sockfd)
|
||||||
maxfd = sockfd;
|
maxfd = sockfd;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче