Date: Thu, 10 Apr 2003 12:42:02 -0400 (EDT) From: John Baldwin <jhb@FreeBSD.org> To: Warner Losh <imp@FreeBSD.org> Cc: cvs-all@FreeBSD.org Subject: RE: cvs commit: src/sys/dev/pccard pccard.c pccardvar.h Message-ID: <XFMail.20030410124202.jhb@FreeBSD.org> In-Reply-To: <200304092207.h39M72h5058124@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 09-Apr-2003 Warner Losh wrote: > imp 2003/04/09 15:07:02 PDT > > FreeBSD src repository > > Modified files: > sys/dev/pccard pccard.c pccardvar.h > Log: > 1.77 was bogus: there is no logic bug. Back it out and compare the > correct fields instead. At this point it doesn't matter since you only check one field now, but there was definitely a logic bug in both 1.76 and 1.78. If you want to terminate a loop when both a and b are zero, you can do either: for (...; a != 0 || b != 0; ...) or: for (...; !(a == 0 && b == 0); ...) However, both 1.76 and 1.78 did: for (...; a != 0 && b != 0; ...) Which will terminate the first time either a or b is zero, not when both are zero. The fact that my wavelan card didn't probe until 1.77 should help to prove that. -- John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20030410124202.jhb>