Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet PR/50528: David Binderman: remove sizeof(sizeof(x))
details: https://anonhg.NetBSD.org/src/rev/64a0bf3a28d1
branches: trunk
changeset: 342249:64a0bf3a28d1
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 13 18:53:57 2015 +0000
description:
PR/50528: David Binderman: remove sizeof(sizeof(x))
diffstat:
sys/netinet/sctp_indata.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d0ae8e3cd54b -r 64a0bf3a28d1 sys/netinet/sctp_indata.c
--- a/sys/netinet/sctp_indata.c Sun Dec 13 18:51:14 2015 +0000
+++ b/sys/netinet/sctp_indata.c Sun Dec 13 18:53:57 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sctp_indata.c,v 1.1 2015/10/13 21:28:35 rjs Exp $ */
+/* $NetBSD: sctp_indata.c,v 1.2 2015/12/13 18:53:57 christos Exp $ */
/* $KAME: sctp_indata.c,v 1.36 2005/03/06 16:04:17 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sctp_indata.c,v 1.1 2015/10/13 21:28:35 rjs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sctp_indata.c,v 1.2 2015/12/13 18:53:57 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_ipsec.h"
@@ -3756,7 +3756,7 @@
/* always set this up to cum-ack */
asoc->this_sack_highest_gap = last_tsn;
- if (((num_seg * sizeof (sizeof(struct sctp_gap_ack_block))) + sizeof(struct sctp_sack_chunk)) > sack_length) {
+ if (num_seg * sizeof(struct sctp_gap_ack_block) + sizeof(struct sctp_sack_chunk) > sack_length) {
/* skip corrupt segments */
strike_enabled = 0;
goto skip_segments;
Home |
Main Index |
Thread Index |
Old Index