RFC: small syscons and kbd patch
Ed Schouten
ed at 80386.nl
Thu Dec 4 23:22:30 PST 2008
* Maksim Yevmenkin <maksim.yevmenkin at gmail.com> wrote:
> the idea was to ensure that kbd->kb_locked variable only takes values
> 0 (zero) and 1 (one).
I often use constructs like these to do that:
foo = bar ? 1 : 0;
Maybe !!bar is a lot shorter to write, I think the line above is a lot
easier to read.
--
Ed Schouten <ed at 80386.nl>
WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20081205/a26a771e/attachment.pgp
More information about the freebsd-current
mailing list