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/d70f87f28f67
branches:  trunk
changeset: 1013092:d70f87f28f67
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 0a3ad210124e -r d70f87f28f67 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