Skip to content

Commit

Permalink
daemon: remove write-only variable maxfd
Browse files Browse the repository at this point in the history
It became unused when 6573faf (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>
  • Loading branch information
René Scharfe authored and Junio C Hamano committed Oct 1, 2014
1 parent 9d1b9aa commit 107efbe
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 107efbe

Please sign in to comment.