Skip to content

Commit 107efbe

Browse files
rscharfegitster
authored andcommitted
daemon: remove write-only variable maxfd
It became unused when 6573faf (NO_IPV6 support for git daemon) replaced select() with poll(). Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9d1b9aa commit 107efbe

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

daemon.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,6 @@ static const char *ip2str(int family, struct sockaddr *sin, socklen_t len)
841841
static int setup_named_sock(char *listen_addr, int listen_port, struct socketlist *socklist)
842842
{
843843
int socknum = 0;
844-
int maxfd = -1;
845844
char pbuf[NI_MAXSERV];
846845
struct addrinfo hints, *ai0, *ai;
847846
int gai;
@@ -909,9 +908,6 @@ static int setup_named_sock(char *listen_addr, int listen_port, struct socketlis
909908
ALLOC_GROW(socklist->list, socklist->nr + 1, socklist->alloc);
910909
socklist->list[socklist->nr++] = sockfd;
911910
socknum++;
912-
913-
if (maxfd < sockfd)
914-
maxfd = sockfd;
915911
}
916912

917913
freeaddrinfo(ai0);

0 commit comments

Comments
 (0)