Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Mar 2012 19:37:05 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r233244 - in stable/8/sys: i386/conf netinet netinet6
Message-ID:  <201203201937.q2KJb594034668@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Tue Mar 20 19:37:05 2012
New Revision: 233244
URL: http://svn.freebsd.org/changeset/base/233244

Log:
  MFC r231895:
  Remove two clang warnings.

Modified:
  stable/8/sys/netinet/sctp_usrreq.c
  stable/8/sys/netinet6/sctp6_usrreq.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/boot/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/e1000/   (props changed)
  stable/8/sys/i386/conf/XENHVM   (props changed)

Modified: stable/8/sys/netinet/sctp_usrreq.c
==============================================================================
--- stable/8/sys/netinet/sctp_usrreq.c	Tue Mar 20 19:27:27 2012	(r233243)
+++ stable/8/sys/netinet/sctp_usrreq.c	Tue Mar 20 19:37:05 2012	(r233244)
@@ -6325,7 +6325,7 @@ sctp_ingetaddr(struct socket *so, struct
 int
 sctp_peeraddr(struct socket *so, struct sockaddr **addr)
 {
-	struct sockaddr_in *sin = (struct sockaddr_in *)*addr;
+	struct sockaddr_in *sin;
 	int fnd;
 	struct sockaddr_in *sin_a;
 	struct sctp_inpcb *inp;

Modified: stable/8/sys/netinet6/sctp6_usrreq.c
==============================================================================
--- stable/8/sys/netinet6/sctp6_usrreq.c	Tue Mar 20 19:27:27 2012	(r233243)
+++ stable/8/sys/netinet6/sctp6_usrreq.c	Tue Mar 20 19:37:05 2012	(r233244)
@@ -1199,7 +1199,7 @@ sctp6_getaddr(struct socket *so, struct 
 static int
 sctp6_peeraddr(struct socket *so, struct sockaddr **addr)
 {
-	struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)*addr;
+	struct sockaddr_in6 *sin6;
 	int fnd;
 	struct sockaddr_in6 *sin_a6;
 	struct sctp_inpcb *inp;



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