Author: glebius
Date: Thu Mar 22 05:07:57 2018
New Revision: 331343
URL: https://svnweb.freebsd.org/changeset/base/331343
Log:
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
Modified:
head/sys/netinet/tcp_timewait.c
Modified: head/sys/netinet/tcp_timewait.c
==============================================================================
--- head/sys/netinet/tcp_timewait.c Thu Mar 22 04:42:29 2018
(r331342)
+++ head/sys/netinet/tcp_timewait.c Thu Mar 22 05:07:57 2018
(r331343)
@@ -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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"