From 3fb18a8e8630858bbf70b8422e025ffe5cd00ef4 Mon Sep 17 00:00:00 2001 From: gibbs Date: Mon, 19 Apr 1999 21:26:17 +0000 Subject: [PATCH] Use macros for accessing the head of the heap so that code is isolated from implementation details of the heap. --- sys/cam/scsi/scsi_cd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c index d2ab42fb001a..787abc71e4a3 100644 --- a/sys/cam/scsi/scsi_cd.c +++ b/sys/cam/scsi/scsi_cd.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scsi_cd.c,v 1.15 1999/02/10 00:03:14 ken Exp $ + * $Id: scsi_cd.c,v 1.16 1999/04/07 22:57:54 gibbs Exp $ */ /* * Portions of this driver taken from the original FreeBSD cd driver. @@ -1189,7 +1189,7 @@ cdrunchangerqueue(void *arg) } } - softc = (struct cd_softc *)camq_remove(&changer->devq, 0); + softc = (struct cd_softc *)camq_remove(&changer->devq, CAMQ_HEAD); changer->cur_device = softc;