diff options
author | René Scharfe <l.s.r@web.de> | 2014-10-01 12:21:57 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-10-01 13:34:56 -0700 |
commit | 107efbeb2409ac3fb01560a42067c8cc506aa249 (patch) | |
tree | cebb4dccd3c289fbdc538030e640dcf89c5278b9 /daemon.c | |
parent | 9d1b9aa9e10da398f430bc619b361d83bee6df7d (diff) | |
download | git-107efbeb2409ac3fb01560a42067c8cc506aa249.tar.gz |
daemon: remove write-only variable maxfdrs/daemon-fixes
It became unused when 6573faff (NO_IPV6 support for git daemon) replaced
select() with poll().
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'daemon.c')
-rw-r--r-- | daemon.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -841,7 +841,6 @@ static const char *ip2str(int family, struct sockaddr *sin, socklen_t len) static int setup_named_sock(char *listen_addr, int listen_port, struct socketlist *socklist) { int socknum = 0; - int maxfd = -1; char pbuf[NI_MAXSERV]; struct addrinfo hints, *ai0, *ai; int gai; @@ -909,9 +908,6 @@ static int setup_named_sock(char *listen_addr, int listen_port, struct socketlis ALLOC_GROW(socklist->list, socklist->nr + 1, socklist->alloc); socklist->list[socklist->nr++] = sockfd; socknum++; - - if (maxfd < sockfd) - maxfd = sockfd; } freeaddrinfo(ai0); |