Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet PR/50529: David Binderman: Remove double sizeof



details:   https://anonhg.NetBSD.org/src/rev/221763e56bdd
branches:  trunk
changeset: 812392:221763e56bdd
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 13 18:58:13 2015 +0000

description:
PR/50529: David Binderman: Remove double sizeof

diffstat:

 sys/netinet/sctp_usrreq.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r c11f19283d33 -r 221763e56bdd sys/netinet/sctp_usrreq.c
--- a/sys/netinet/sctp_usrreq.c Sun Dec 13 18:53:57 2015 +0000
+++ b/sys/netinet/sctp_usrreq.c Sun Dec 13 18:58:13 2015 +0000
@@ -1,5 +1,5 @@
 /*     $KAME: sctp_usrreq.c,v 1.50 2005/06/16 20:45:29 jinmei Exp $    */
-/*     $NetBSD: sctp_usrreq.c,v 1.1 2015/10/13 21:28:35 rjs Exp $      */
+/*     $NetBSD: sctp_usrreq.c,v 1.2 2015/12/13 18:58:13 christos Exp $ */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Cisco Systems, Inc.
@@ -33,7 +33,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sctp_usrreq.c,v 1.1 2015/10/13 21:28:35 rjs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sctp_usrreq.c,v 1.2 2015/12/13 18:58:13 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -980,7 +980,7 @@
                                                in6_sin_2_v4mapsin6(sin, (struct sockaddr_in6 *)sas);
                                                ((struct sockaddr_in6 *)sas)->sin6_port = inp->sctp_lport;
                                                sas = (struct sockaddr_storage *)((vaddr_t)sas + sizeof(struct sockaddr_in6));
-                                               actual += sizeof(sizeof(struct sockaddr_in6));
+                                               actual += sizeof(struct sockaddr_in6);
                                        } else {
                                                memcpy(sas, sin, sizeof(*sin));
                                                ((struct sockaddr_in *)sas)->sin_port = inp->sctp_lport;



Home | Main Index | Thread Index | Old Index