summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2007-03-20 02:35:56 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2007-03-20 02:35:56 +0000
commitd0e0b27d4891e3f8e09d0406933551ec0e9a8c6b (patch)
tree802a7625f18cf8dd7f30ef712260a84d9ed60c7a /sys
parente43850b6f174368bacce24435a9ddd82736f35a7 (diff)
Use queue.h macros instead of home made for thingy.
From tbert <bret.lambert@gmail.com>
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/bio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/bio.c b/sys/dev/bio.c
index 1fbb56f3d71..fb7d6cbf87a 100644
--- a/sys/dev/bio.c
+++ b/sys/dev/bio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bio.c,v 1.8 2006/05/29 09:34:38 mk Exp $ */
+/* $OpenBSD: bio.c,v 1.9 2007/03/20 02:35:55 marco Exp $ */
/*
* Copyright (c) 2002 Niklas Hallqvist. All rights reserved.
@@ -132,7 +132,7 @@ bio_lookup(char *name)
{
struct bio_mapping *bm;
- for (bm = LIST_FIRST(&bios); bm != NULL; bm = LIST_NEXT(bm, bm_link))
+ LIST_FOREACH(bm, &bios, bm_link)
if (strcmp(name, bm->bm_dev->dv_xname) == 0)
return (bm);
return (NULL);
@@ -143,7 +143,7 @@ bio_validate(void *cookie)
{
struct bio_mapping *bm;
- for (bm = LIST_FIRST(&bios); bm != NULL; bm = LIST_NEXT(bm, bm_link))
+ LIST_FOREACH(bm, &bios, bm_link)
if (bm == cookie)
return (1);
return (0);