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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to