Unix Technical Forum

Re: use queue.h macros in bio.c

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 10:15 AM
Marco Peereboom
 
Posts: n/a
Default Re: use queue.h macros in bio.c

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);


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:56 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com