summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-04-08 16:08:22 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-04-08 16:08:22 +0000
commit38725b4cacd776c378e4427633490a22125a2686 (patch)
tree33c9142d17191ed5bd2f7096b417fee40ae8b732 /sys/dev
parent7d301ed869dd9ff818e6f107d9853bd84d816a16 (diff)
swap the last two parameters to TAILQ_FOREACH_REVERSE. matches what FreeBSD
and NetBSD do. ok millert@ mcbride@ markus@ ho@, checked to not affect ports by naddy@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/std/sbp2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/std/sbp2.c b/sys/dev/std/sbp2.c
index b32cc275c04..c00d33ddcef 100644
--- a/sys/dev/std/sbp2.c
+++ b/sys/dev/std/sbp2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbp2.c,v 1.5 2004/02/15 02:38:38 tedu Exp $ */
+/* $OpenBSD: sbp2.c,v 1.6 2004/04/08 16:08:21 henning Exp $ */
/*
* Copyright (c) 2002 Thierry Deval. All rights reserved.
@@ -225,7 +225,7 @@ sbp2_elfind_last(struct sbp2_account *ac)
{
struct sbp2_orb_element *elm;
- TAILQ_FOREACH_REVERSE(elm, &sbp2_elm_head, elm_chain, sbp2_orb_tq) {
+ TAILQ_FOREACH_REVERSE(elm, &sbp2_elm_head, sbp2_orb_tq, elm_chain) {
if (elm->elm_ac == ac)
break;
}
@@ -379,8 +379,8 @@ sbp2_clean(struct fwnode_softc *sc, struct p1212_dir *unitdir, int logout)
if ((ac = sbp2_acfind(sc, lun)) != NULL) {
DPRINTF(("%s: clean lun %d\n", __func__, lun));
i = 0;
- TAILQ_FOREACH_REVERSE(elm, &sbp2_elm_head, elm_chain,
- sbp2_orb_tq) {
+ TAILQ_FOREACH_REVERSE(elm, &sbp2_elm_head, sbp2_orb_tq,
+ elm_chain) {
DPRINTF(("%s%d", i++?" ":"", i));
if (elm != NULL && elm->elm_ac == ac) {
TAILQ_REMOVE(&sbp2_elm_head, elm,