[Midnightbsd-cvs] src [8888] trunk/sys/netinet/tcp_timewait.c: init hdrlen to 0 to avoid clang warning.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Sep 26 18:27:10 EDT 2016


Revision: 8888
          http://svnweb.midnightbsd.org/src/?rev=8888
Author:   laffer1
Date:     2016-09-26 18:27:10 -0400 (Mon, 26 Sep 2016)
Log Message:
-----------
init hdrlen to 0 to avoid clang warning.

Modified Paths:
--------------
    trunk/sys/netinet/tcp_timewait.c

Modified: trunk/sys/netinet/tcp_timewait.c
===================================================================
--- trunk/sys/netinet/tcp_timewait.c	2016-09-26 22:26:35 UTC (rev 8887)
+++ trunk/sys/netinet/tcp_timewait.c	2016-09-26 22:27:10 UTC (rev 8888)
@@ -519,6 +519,7 @@
 	struct ip6_hdr *ip6 = NULL;
 	int isipv6 = inp->inp_inc.inc_flags & INC_ISIPV6;
 #endif
+	hdrlen = 0;                     /* Keep compiler happy */
 
 	INP_WLOCK_ASSERT(inp);
 



More information about the Midnightbsd-cvs mailing list