From a13a7e762ef3dc8ab0824ee1ffac2c9aac6ef5ec Mon Sep 17 00:00:00 2001 From: Pierre-Yves Ritschard Date: Mon, 28 May 2007 22:17:22 +0000 Subject: avoid bypassing sys/queue.h in many places in the kernel. many assumptions were made about the way the various list types are implemented. lots of suggestions and help from otto and miod. ok otto@ --- sys/arch/sparc64/dev/fd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/sparc64/dev') diff --git a/sys/arch/sparc64/dev/fd.c b/sys/arch/sparc64/dev/fd.c index f57073d9238..e2c4413ec1e 100644 --- a/sys/arch/sparc64/dev/fd.c +++ b/sys/arch/sparc64/dev/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.10 2007/04/27 22:20:01 krw Exp $ */ +/* $OpenBSD: fd.c,v 1.11 2007/05/28 22:17:21 pyr Exp $ */ /* $NetBSD: fd.c,v 1.112 2003/08/07 16:29:35 agc Exp $ */ /*- @@ -1078,7 +1078,7 @@ fdcstatus(fdc, s) struct fdc_softc *fdc; char *s; { - struct fd_softc *fd = fdc->sc_drives.tqh_first; + struct fd_softc *fd = TAILQ_FIRST(&fdc->sc_drives); int n; /* Just print last status */ -- cgit v1.2.3