cvs commit: src/sys/i386/isa clock.c
Erik Trulsson
ertr1013 at student.uu.se
Sat May 31 13:37:58 PDT 2003
On Sat, May 31, 2003 at 01:23:46PM -0700, Poul-Henning Kamp wrote:
> phk 2003/05/31 13:23:46 PDT
>
> FreeBSD src repository
>
> Modified files:
> sys/i386/isa clock.c
> Log:
> Don't rely on boolean expression evaluating to 1 or 0 by default.
Why not? In C the relational operators (including '==') *always*
evaluate to 1 or 0. One can rely on that.
I.e. this change doesn't really accomplish anything except make the
expression somewhat more complicated.
>
> Found by: FlexeLint
>
> Revision Changes Path
> 1.199 +1 -1 src/sys/i386/isa/clock.c
> _______________________________________________
> cvs-all at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/cvs-all
> To unsubscribe, send any mail to "cvs-all-unsubscribe at freebsd.org"
--
<Insert your favourite quote here.>
Erik Trulsson
ertr1013 at student.uu.se
More information about the cvs-src
mailing list