Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec Remove unnecessary LIST_FOREACH definition
details: https://anonhg.NetBSD.org/src/rev/98f1f72fb7f6
branches: trunk
changeset: 353253:98f1f72fb7f6
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Apr 26 07:17:38 2017 +0000
description:
Remove unnecessary LIST_FOREACH definition
diffstat:
sys/netipsec/key.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (29 lines):
diff -r 17d4f8f4682e -r 98f1f72fb7f6 sys/netipsec/key.c
--- a/sys/netipsec/key.c Wed Apr 26 03:54:37 2017 +0000
+++ b/sys/netipsec/key.c Wed Apr 26 07:17:38 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.c,v 1.116 2017/04/20 06:27:08 ozaki-r Exp $ */
+/* $NetBSD: key.c,v 1.117 2017/04/26 07:17:38 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.116 2017/04/20 06:27:08 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.117 2017/04/26 07:17:38 ozaki-r Exp $");
/*
* This code is referd to RFC 2367
@@ -285,10 +285,6 @@
&key_prefered_oldsa, 0, "");
#endif /* SYSCTL_INT */
-#ifndef LIST_FOREACH
-#define LIST_FOREACH(elm, head, field) \
- for (elm = LIST_FIRST(head); elm; elm = LIST_NEXT(elm, field))
-#endif
#define __LIST_CHAINED(elm) \
(!((elm)->chain.le_next == NULL && (elm)->chain.le_prev == NULL))
#define LIST_INSERT_TAIL(head, elm, type, field) \
Home |
Main Index |
Thread Index |
Old Index