Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Mark KASSERT-only variable as __diagused.
details: https://anonhg.NetBSD.org/src/rev/bd9cad9c6287
branches: trunk
changeset: 937524:bd9cad9c6287
user: riastradh <riastradh%NetBSD.org@localhost>
date: Thu Aug 20 21:36:21 2020 +0000
description:
Mark KASSERT-only variable as __diagused.
diffstat:
sys/net/if_wg.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b7e54ef2d636 -r bd9cad9c6287 sys/net/if_wg.c
--- a/sys/net/if_wg.c Thu Aug 20 21:36:11 2020 +0000
+++ b/sys/net/if_wg.c Thu Aug 20 21:36:21 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wg.c,v 1.18 2020/08/20 21:35:44 riastradh Exp $ */
+/* $NetBSD: if_wg.c,v 1.19 2020/08/20 21:36:21 riastradh Exp $ */
/*
* Copyright (C) Ryota Ozaki <ozaki.ryota%gmail.com@localhost>
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.18 2020/08/20 21:35:44 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.19 2020/08/20 21:36:21 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -907,7 +907,7 @@
CTASSERT(WG_STATIC_KEY_LEN == crypto_scalarmult_curve25519_BYTES);
- int ret = crypto_scalarmult(out, privkey, pubkey);
+ int ret __diagused = crypto_scalarmult(out, privkey, pubkey);
KASSERT(ret == 0);
}
Home |
Main Index |
Thread Index |
Old Index