Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Mark KASSERT-only variable __diagused.
details: https://anonhg.NetBSD.org/src/rev/805c89ba4dd3
branches: trunk
changeset: 937577:805c89ba4dd3
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Aug 22 01:43:07 2020 +0000
description:
Mark KASSERT-only variable __diagused.
diffstat:
sys/netinet/ip_encap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3097373e9e47 -r 805c89ba4dd3 sys/netinet/ip_encap.c
--- a/sys/netinet/ip_encap.c Sat Aug 22 00:48:02 2020 +0000
+++ b/sys/netinet/ip_encap.c Sat Aug 22 01:43:07 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_encap.c,v 1.73 2020/08/20 21:21:32 riastradh Exp $ */
+/* $NetBSD: ip_encap.c,v 1.74 2020/08/22 01:43:07 riastradh Exp $ */
/* $KAME: ip_encap.c,v 1.73 2001/10/02 08:30:58 itojun Exp $ */
/*
@@ -68,7 +68,7 @@
#define USE_RADIX
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_encap.c,v 1.73 2020/08/20 21:21:32 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_encap.c,v 1.74 2020/08/22 01:43:07 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_mrouting.h"
@@ -609,7 +609,7 @@
KASSERT(sp->sa_len == dp->sa_len);
KASSERT(af == sp->sa_family && af == dp->sa_family);
- socklen_t len = sockaddr_getsize_by_family(af);
+ socklen_t len __diagused = sockaddr_getsize_by_family(af);
KASSERT(len != 0 && len == sp->sa_len && len == dp->sa_len);
}
Home |
Main Index |
Thread Index |
Old Index