From: Wouter Wijngaards Date: Tue, 19 Jul 2016 10:30:53 +0000 (+0000) Subject: remove statement before declaration warning. X-Git-Tag: release-1.5.10~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ef38c58e5f89554dc4c404933ae69b67d44c9c29;p=thirdparty%2Funbound.git remove statement before declaration warning. git-svn-id: file:///svn/unbound/trunk@3820 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c index 628704975..88b8bdfab 100644 --- a/services/listen_dnsport.c +++ b/services/listen_dnsport.c @@ -512,6 +512,9 @@ create_tcp_accept_sock(struct addrinfo *addr, int v6only, int* noproto, #if defined(SO_REUSEADDR) || defined(SO_REUSEPORT) || defined(IPV6_V6ONLY) || defined(IP_TRANSPARENT) || defined(IP_BINDANY) || defined(IP_FREEBIND) int on = 1; #endif +#ifdef USE_TCP_FASTOPEN + int qlen; +#endif #if !defined(IP_TRANSPARENT) && !defined(IP_BINDANY) (void)transparent; #endif @@ -678,10 +681,10 @@ create_tcp_accept_sock(struct addrinfo *addr, int v6only, int* noproto, #ifdef __APPLE__ /* OS X implementation only supports qlen of 1 via this call. Actual value is configured by the net.inet.tcp.fastopen_backlog kernel parm. */ - int qlen = 1; + qlen = 1; #else /* 5 is recommended on linux */ - int qlen = 5; + qlen = 5; #endif if ((setsockopt(s, IPPROTO_TCP, TCP_FASTOPEN, &qlen, sizeof(qlen))) == -1 ) {