Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet simplify a compile-time assertion
details: https://anonhg.NetBSD.org/src/rev/6701796afdf4
branches: trunk
changeset: 764261:6701796afdf4
user: yamt <yamt%NetBSD.org@localhost>
date: Thu Apr 14 16:08:53 2011 +0000
description:
simplify a compile-time assertion
diffstat:
sys/netinet/tcp_output.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r 6021a38e535b -r 6701796afdf4 sys/netinet/tcp_output.c
--- a/sys/netinet/tcp_output.c Thu Apr 14 16:05:59 2011 +0000
+++ b/sys/netinet/tcp_output.c Thu Apr 14 16:08:53 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_output.c,v 1.170 2011/03/21 20:39:32 matt Exp $ */
+/* $NetBSD: tcp_output.c,v 1.171 2011/04/14 16:08:53 yamt Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -135,7 +135,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.170 2011/03/21 20:39:32 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.171 2011/04/14 16:08:53 yamt Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -960,9 +960,7 @@
* stack (rather than big-small-big-small-...).
*/
#ifdef INET6
-#if IPV6_MAXPACKET != IP_MAXPACKET
-#error IPV6_MAXPACKET != IP_MAXPACKET
-#endif
+ CTASSERT(IPV6_MAXPACKET == IP_MAXPACKET);
#endif
len = (min(len, IP_MAXPACKET) / txsegsize) * txsegsize;
if (len <= txsegsize) {
Home |
Main Index |
Thread Index |
Old Index