daemon: remove write-only variable maxfd
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>
René Scharfe committed
Oct 1, 2014 at 12:21 UTC
107efbeb2409ac3fb01560a42067c8cc506aa249
1 file changed
-4
daemon.c
-4
@@ -841,7 +841,6 @@ static const char *ip2str(int family, struct sockaddr *sin, socklen_t len)
841
static int setup_named_sock(char *listen_addr, int listen_port, struct socketlist *socklist)
842
{
843
int socknum = 0;
844
- int maxfd = -1;
844
char pbuf[NI_MAXSERV];
845
struct addrinfo hints, *ai0, *ai;
846
int gai;
@@ -909,9 +908,6 @@ static int setup_named_sock(char *listen_addr, int listen_port, struct socketlis
908
ALLOC_GROW(socklist->list, socklist->nr + 1, socklist->alloc);
909
socklist->list[socklist->nr++] = sockfd;
910
socknum++;
912
-
913
- if (maxfd < sockfd)
914
- maxfd = sockfd;
911
}
912
913
freeaddrinfo(ai0);