summaryrefslogtreecommitdiff
path: root/sys/dev/sbus/esp_sbus.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-03-05 21:48:58 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-03-05 21:48:58 +0000
commit52f635294dc2220b27898d3db1703c9464b92fb1 (patch)
tree5c2d6cca90a4bcc953c4c704201e7c2d7c08188e /sys/dev/sbus/esp_sbus.c
parent84fa77ca902d7934ca42a7fdd806497b643a8421 (diff)
Use more queue macros rather than doing it by hand; ok otto@ krw@
Diffstat (limited to 'sys/dev/sbus/esp_sbus.c')
-rw-r--r--sys/dev/sbus/esp_sbus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sbus/esp_sbus.c b/sys/dev/sbus/esp_sbus.c
index 82c0e035c9b..6ba67c2cc9d 100644
--- a/sys/dev/sbus/esp_sbus.c
+++ b/sys/dev/sbus/esp_sbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: esp_sbus.c,v 1.16 2004/09/29 19:17:43 miod Exp $ */
+/* $OpenBSD: esp_sbus.c,v 1.17 2006/03/05 21:48:56 miod Exp $ */
/* $NetBSD: esp_sbus.c,v 1.14 2001/04/25 17:53:37 bouyer Exp $ */
/*-
@@ -721,9 +721,9 @@ db_esp(db_expr_t addr, int have_addr, db_expr_t count, char *modif)
sc->sc_imess[1], sc->sc_imess[2], sc->sc_imess[3],
sc->sc_imess[0]);
db_printf("ready: ");
- for (ecb = sc->ready_list.tqh_first; ecb; ecb = ecb->chain.tqe_next) {
+ TAILQ_FOREACH(ecb, &sc->ready_list, chain) {
db_printf("ecb %p ", ecb);
- if (ecb == ecb->chain.tqe_next) {
+ if (ecb == TAILQ_NEXT(ecb, chain)) {
db_printf("\nWARNING: tailq loop on ecb %p", ecb);
break;
}