diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-11-20 11:48:53 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-11-20 11:48:53 +0000 |
commit | 859e8402a5f2197d8a082df01b8b22e587825504 (patch) | |
tree | 2e4e0dee78264d774741802b9facfff2bb0389c9 /regress/sys | |
parent | 98aa1ef75fbeefc833328e59c2667c193c3f032c (diff) |
SRPL_FIRST() and SRPL_FOLLOW().
Diffstat (limited to 'regress/sys')
-rw-r--r-- | regress/sys/net/rtable/srp_compat.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/sys/net/rtable/srp_compat.h b/regress/sys/net/rtable/srp_compat.h index 27cf38bdcfd..3781956e2a3 100644 --- a/regress/sys/net/rtable/srp_compat.h +++ b/regress/sys/net/rtable/srp_compat.h @@ -46,8 +46,9 @@ srp_swap_locked(struct srp *srp, void *nv) #define SRPL_HEAD(name, entry) SLIST_HEAD(name, entry) #define SRPL_ENTRY(type) SLIST_ENTRY(type) -#define SRPL_ENTER(_sr, _sl) SLIST_FIRST(_sl); +#define SRPL_FIRST(_sr, _sl) SLIST_FIRST(_sl); #define SRPL_NEXT(_sr, _e, _ENTRY) SLIST_NEXT(_e, _ENTRY) +#define SRPL_FOLLOW(_sr, _e, _ENTRY) SLIST_NEXT(_e, _ENTRY) #define SRPL_LEAVE(_sr) ((void)_sr) #define SRPL_FOREACH(_c, _srp, _sl, _ENTRY) \ |