Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Mar 2012 19:16:54 +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-9@freebsd.org
Subject:   svn commit: r233239 - in stable/9/sys: netinet netinet6
Message-ID:  <201203201916.q2KJGsmx033728@svn.freebsd.org>

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

Log:
  MFC r231895:
  
  Remove two clang warnings.

Modified:
  stable/9/sys/netinet/sctp_usrreq.c
  stable/9/sys/netinet6/sctp6_usrreq.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/netinet/sctp_usrreq.c
==============================================================================
--- stable/9/sys/netinet/sctp_usrreq.c	Tue Mar 20 18:18:12 2012	(r233238)
+++ stable/9/sys/netinet/sctp_usrreq.c	Tue Mar 20 19:16:54 2012	(r233239)
@@ -6357,7 +6357,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/9/sys/netinet6/sctp6_usrreq.c
==============================================================================
--- stable/9/sys/netinet6/sctp6_usrreq.c	Tue Mar 20 18:18:12 2012	(r233238)
+++ stable/9/sys/netinet6/sctp6_usrreq.c	Tue Mar 20 19:16:54 2012	(r233239)
@@ -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?201203201916.q2KJGsmx033728>