This is a discussion on Re: use queue.h macros in bio.c within the mailing.openbsd.tech forums, part of the OpenBSD category; --> I don't recall seeing this diff but I'll take care of it. On Sun, Mar 18, 2007 at 09:26:42PM ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I don't recall seeing this diff but I'll take care of it. On Sun, Mar 18, 2007 at 09:26:42PM -0400, tbert wrote: > No binary change on my T20 laptop. > > Had this hanging around for a while, sent to marco@, who timed out. > > - Bert > > index: src/sys/dev/bio.c > ================================================== ================= > RCS file: /cvs/src/sys/dev/bio.c,v > retrieving revision 1.8 > diff -u -r1.8 bio.c > --- src/sys/dev/bio.c 29 May 2006 09:34:38 -0000 1.8 > +++ src/sys/dev/bio.c 22 Feb 2007 10:17:14 -0000 > @@ -132,7 +132,7 @@ > { > 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 @@ > { > 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); |