From 045b17cf00de7ddf9b7ce771dbbfe3fd35b09eaa Mon Sep 17 00:00:00 2001 From: gibbs Date: Sun, 21 Sep 1997 22:03:22 +0000 Subject: Convert to use the new bufq* functions for dealing with buffer queues. --- sys/scsi/sctarg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/scsi/sctarg.c') diff --git a/sys/scsi/sctarg.c b/sys/scsi/sctarg.c index 99549be..1900b63 100644 --- a/sys/scsi/sctarg.c +++ b/sys/scsi/sctarg.c @@ -37,7 +37,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sctarg.c,v 1.20 1997/03/23 06:33:51 bde Exp $ + * $Id: sctarg.c,v 1.21 1997/09/02 20:06:36 bde Exp $ */ #include "opt_bounce.h" @@ -187,10 +187,10 @@ sctargstart(unit, unused_flags) return; } - bp = sctarg->buf_queue.tqh_first; + bp = bufq_first(&sctarg->buf_queue); if (bp == NULL) return; - TAILQ_REMOVE(&sctarg->buf_queue, bp, b_act); + bufq_remove(&sctarg->buf_queue, bp); /* * Fill out the scsi command @@ -250,7 +250,7 @@ sctarg_strategy(struct buf *bp, struct scsi_link *sc_link) /* * Place it at the end of the queue of activities for this device. */ - TAILQ_INSERT_TAIL( &sctarg->buf_queue, bp, b_act); + bufq_insert_tail(&sctarg->buf_queue, bp); /* * Tell the device to get going on the transfer if it's -- cgit v1.1