@matheusbsbs / matheus-bagliano / commits / e72456bb67
Fork 0

Remove variables not needed when using poll

Peter Anvin committed Sep 28, 2005 at 18:01 UTC e72456bb67bfcadf3703dc2f8240af7d9d8aebdb
1 file changed -4
daemon.c
-4
@@ -379,7 +379,6 @@ static int socksetup(int port, int **socklist_p)
379 {
380 int socknum = 0, *socklist = NULL;
381 int maxfd = -1;
382 - fd_set fds_init, fds;
382 char pbuf[NI_MAXSERV];
383
384 struct addrinfo hints, *ai0, *ai;
@@ -396,8 +395,6 @@ static int socksetup(int port, int **socklist_p)
395 if (gai)
396 die("getaddrinfo() failed: %s\n", gai_strerror(gai));
397
399 - FD_ZERO(&fds_init);
400 -
398 for (ai = ai0; ai; ai = ai->ai_next) {
399 int sockfd;
400 int *newlist;
@@ -436,7 +433,6 @@ static int socksetup(int port, int **socklist_p)
433 socklist = newlist;
434 socklist[socknum++] = sockfd;
435
439 - FD_SET(sockfd, &fds_init);
436 if (maxfd < sockfd)
437 maxfd = sockfd;
438 }