From b1f2f2d53865ea47184c38083d6703cbd4e976d2 Mon Sep 17 00:00:00 2001 From: John Polstra Date: Tue, 27 Apr 1999 18:34:13 +0000 Subject: [PATCH] Fix the code that prints the "Initializing PC-card drivers" message so that the list of drivers is correct. This is a slightly simplified version of the patch from the PR. PR: misc/10544 Submitted by: Christophe Colle --- sys/pccard/pccard.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c index ba870f0b76c..129ca78afdd 100644 --- a/sys/pccard/pccard.c +++ b/sys/pccard/pccard.c @@ -28,7 +28,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pccard.c,v 1.73 1999/03/10 15:00:54 roger Exp $ + * $Id: pccard.c,v 1.74 1999/04/27 11:18:08 phk Exp $ */ #include "opt_devfs.h" @@ -162,12 +162,11 @@ static void pccard_configure(dummy) void *dummy; { - struct pccard_device **driver, *drv; + struct pccard_device *drv; /* This isn't strictly correct, but works because of initialize order */ - driver = &drivers; printf("Initializing PC-card drivers:"); - while ((drv = *driver++)) + for (drv = drivers; drv != NULL; drv = drv->next) printf(" %s", drv->name); printf("\n"); }