Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec Fix usage of FOREACH macro
details: https://anonhg.NetBSD.org/src/rev/53f589cadc5e
branches: trunk
changeset: 828007:53f589cadc5e
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Nov 22 05:43:28 2017 +0000
description:
Fix usage of FOREACH macro
key_sad.lock is held there so SAVLIST_WRITER_FOREACH is enough.
diffstat:
sys/netipsec/key.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8785f8912744 -r 53f589cadc5e sys/netipsec/key.c
--- a/sys/netipsec/key.c Wed Nov 22 05:42:30 2017 +0000
+++ b/sys/netipsec/key.c Wed Nov 22 05:43:28 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.c,v 1.242 2017/11/21 07:33:06 ozaki-r Exp $ */
+/* $NetBSD: key.c,v 1.243 2017/11/22 05:43:28 ozaki-r Exp $ */
/* $FreeBSD: src/sys/netipsec/key.c,v 1.3.2.3 2004/02/14 22:23:23 bms Exp $ */
/* $KAME: key.c,v 1.191 2001/06/27 10:46:49 sakane Exp $ */
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.242 2017/11/21 07:33:06 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.243 2017/11/22 05:43:28 ozaki-r Exp $");
/*
* This code is referred to RFC 2367
@@ -8139,7 +8139,7 @@
* Sort the list by lft_c->sadb_lifetime_addtime
* in ascending order.
*/
- SAVLIST_READER_FOREACH(_sav, sav->sah, state) {
+ SAVLIST_WRITER_FOREACH(_sav, sav->sah, state) {
if (_sav->lft_c->sadb_lifetime_addtime >
sav->lft_c->sadb_lifetime_addtime) {
SAVLIST_WRITER_INSERT_BEFORE(_sav, sav);
Home |
Main Index |
Thread Index |
Old Index