svn commit: r233239 - in stable/9/sys: netinet netinet6

Michael Tuexen tuexen at FreeBSD.org
Tue Mar 20 19:16:55 UTC 2012


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;


More information about the svn-src-stable-9 mailing list