Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net wg: Fix non-DIAGNOSTIC build.
details: https://anonhg.NetBSD.org/src/rev/013d9754c90b
branches: trunk
changeset: 938352:013d9754c90b
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Sep 07 00:32:20 2020 +0000
description:
wg: Fix non-DIAGNOSTIC build.
diffstat:
sys/net/if_wg.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8607f2f46645 -r 013d9754c90b sys/net/if_wg.c
--- a/sys/net/if_wg.c Mon Sep 07 00:32:00 2020 +0000
+++ b/sys/net/if_wg.c Mon Sep 07 00:32:20 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wg.c,v 1.51 2020/08/31 20:34:43 riastradh Exp $ */
+/* $NetBSD: if_wg.c,v 1.52 2020/09/07 00:32:20 riastradh Exp $ */
/*
* Copyright (C) Ryota Ozaki <ozaki.ryota%gmail.com@localhost>
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.51 2020/08/31 20:34:43 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.52 2020/09/07 00:32:20 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1201,7 +1201,7 @@
static void
wg_put_session_index(struct wg_softc *wg, struct wg_session *wgs)
{
- struct wg_peer *wgp = wgs->wgs_peer;
+ struct wg_peer *wgp __diagused = wgs->wgs_peer;
KASSERT(mutex_owned(wgp->wgp_lock));
KASSERT(wgs == wgp->wgp_session_unstable);
Home |
Main Index |
Thread Index |
Old Index