Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2018 06:27:06 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r336962 - head/sys/netinet
Message-ID:  <201807310627.w6V6R6nI079082@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Tue Jul 31 06:27:05 2018
New Revision: 336962
URL: https://svnweb.freebsd.org/changeset/base/336962

Log:
  Fix INET only builds.
  
  r336940 introduced an "unused variable" warning on platforms which
  support INET, but not INET6, like MALTA and MALTA64 as reported
  by Mark Millard. Improve the #ifdefs to address this issue.
  
  Sponsored by:		Netflix, Inc.

Modified:
  head/sys/netinet/tcp_usrreq.c

Modified: head/sys/netinet/tcp_usrreq.c
==============================================================================
--- head/sys/netinet/tcp_usrreq.c	Tue Jul 31 01:02:22 2018	(r336961)
+++ head/sys/netinet/tcp_usrreq.c	Tue Jul 31 06:27:05 2018	(r336962)
@@ -902,7 +902,10 @@ tcp_usr_send(struct socket *so, int flags, struct mbuf
 	struct tcpcb *tp = NULL;
 	struct epoch_tracker net_et;
 #ifdef INET
-	struct sockaddr_in sin, *sinp;
+#ifdef INET6
+	struct sockaddr_in sin;
+#endif
+	struct sockaddr_in *sinp;
 #endif
 #ifdef INET6
 	int isipv6;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807310627.w6V6R6nI079082>