From 3108a71a34fce89ffd0899d774919b448fb89a9e Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Thu, 22 Mar 2018 05:07:57 +0000 Subject: [PATCH] Fix LINT-NOINET build initializing local to false. This is a dead code, since for NOINET build isipv6 is always true, but this dead code makes it compilable. Reported by: rpokala --- sys/netinet/tcp_timewait.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index 38dfcf30d9a0..823786c57054 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.c @@ -244,12 +244,12 @@ tcp_twstart(struct tcpcb *tp) #ifdef INET6 if (isipv6) local = in6_localaddr(&inp->in6p_faddr); -#endif -#if defined(INET6) && defined(INET) else #endif #ifdef INET local = in_localip(inp->inp_faddr); +#else + local = false; #endif } else local = false;