summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorPeter Anvin <hpa@tazenda.sc.orionmulti.com>2005-09-28 18:01:55 -0700
committerPeter Anvin <hpa@tazenda.sc.orionmulti.com>2005-09-28 18:01:55 -0700
commite72456bb67bfcadf3703dc2f8240af7d9d8aebdb (patch)
tree03d76aa615bf3c4e61c7ea92f0da44c583217b1d /daemon.c
parentdc4afa57ce3e07645690bec1e4c20ab59e8a9bd0 (diff)
downloadgit-e72456bb67bfcadf3703dc2f8240af7d9d8aebdb.tar.gz
Remove variables not needed when using poll
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/daemon.c b/daemon.c
index 79e72e0bdd..526ac782cf 100644
--- a/daemon.c
+++ b/daemon.c
@@ -379,7 +379,6 @@ static int socksetup(int port, int **socklist_p)
{
int socknum = 0, *socklist = NULL;
int maxfd = -1;
- fd_set fds_init, fds;
char pbuf[NI_MAXSERV];
struct addrinfo hints, *ai0, *ai;
@@ -396,8 +395,6 @@ static int socksetup(int port, int **socklist_p)
if (gai)
die("getaddrinfo() failed: %s\n", gai_strerror(gai));
- FD_ZERO(&fds_init);
-
for (ai = ai0; ai; ai = ai->ai_next) {
int sockfd;
int *newlist;
@@ -436,7 +433,6 @@ static int socksetup(int port, int **socklist_p)
socklist = newlist;
socklist[socknum++] = sockfd;
- FD_SET(sockfd, &fds_init);
if (maxfd < sockfd)
maxfd = sockfd;
}