summaryrefslogtreecommitdiffstats
path: root/sys/pccard
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1999-04-27 18:34:13 +0000
committerjdp <jdp@FreeBSD.org>1999-04-27 18:34:13 +0000
commit20a0a375c2944c28208ebecbf5774f17dc288318 (patch)
treed04e5c710c0eba2524b80c7fa62802217ba44110 /sys/pccard
parent01aaff1d4debd475daae4025bde2e04925193602 (diff)
downloadFreeBSD-src-20a0a375c2944c28208ebecbf5774f17dc288318.zip
FreeBSD-src-20a0a375c2944c28208ebecbf5774f17dc288318.tar.gz
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 <colle@krtkg1.rug.ac.be>
Diffstat (limited to 'sys/pccard')
-rw-r--r--sys/pccard/pccard.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c
index ba870f0..129ca78 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");
}
OpenPOWER on IntegriCloud