summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-05-29 13:56:15 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-05-29 13:56:15 +0000
commitf92abc16c1ff335882c34e18a23d0daf2b5b03f8 (patch)
treecd1db4dcbae774beb7918b7ae5792f5ec2484c46 /sys
parent8f2bd2067fd2a565352afda9d61956f0e4f4d5a8 (diff)
TAILQ_LAST takes two arguments.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/mvme68k/dev/sbic.c4
-rw-r--r--sys/arch/mvme68k/dev/ssh.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/mvme68k/dev/sbic.c b/sys/arch/mvme68k/dev/sbic.c
index 1d96a9f776e..5eefab96da7 100644
--- a/sys/arch/mvme68k/dev/sbic.c
+++ b/sys/arch/mvme68k/dev/sbic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbic.c,v 1.18 2007/05/28 22:17:21 pyr Exp $ */
+/* $OpenBSD: sbic.c,v 1.19 2007/05/29 13:56:14 pyr Exp $ */
/* $NetBSD: sbic.c,v 1.2 1996/04/23 16:32:54 chuck Exp $ */
/*
@@ -644,7 +644,7 @@ sbic_scsidone(acb, stat)
dosched = 1; /* start next command */
} else
- if (TAILQ_LAST(&dev->ready_list) == TAILQ_NEXT(acb, chain)) {
+ if (TAILQ_LAST(&dev->ready_list, acb_list) == TAILQ_NEXT(acb, chain)) {
TAILQ_REMOVE(&dev->ready_list, acb, chain);
diff --git a/sys/arch/mvme68k/dev/ssh.c b/sys/arch/mvme68k/dev/ssh.c
index a92aae8a528..fd35217ec73 100644
--- a/sys/arch/mvme68k/dev/ssh.c
+++ b/sys/arch/mvme68k/dev/ssh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh.c,v 1.15 2007/05/28 22:17:21 pyr Exp $ */
+/* $OpenBSD: ssh.c,v 1.16 2007/05/29 13:56:13 pyr Exp $ */
/*
* Copyright (c) 1994 Michael L. Hitch
@@ -392,7 +392,8 @@ ssh_scsidone(acb, stat)
dosched = 1; /* start next command */
--sc->sc_active;
SSH_TRACE('d','a',stat,0)
- } else if (TAILQ_LAST(&sc->ready_list) == TAILQ_NEXT(acb, chain)) {
+ } else if (TAILQ_LAST(&sc->ready_list, acb_list) ==
+ TAILQ_NEXT(acb, chain)) {
TAILQ_REMOVE(&sc->ready_list, acb, chain);
SSH_TRACE('d','r',stat,0)
} else {