svn commit: r247603 - projects/calloutng/sys/kern

Attilio Rao attilio at freebsd.org
Sat Mar 2 00:57:23 UTC 2013


On Sat, Mar 2, 2013 at 1:53 AM, Davide Italiano <davide at freebsd.org> wrote:
> Author: davide
> Date: Sat Mar  2 00:53:16 2013
> New Revision: 247603
> URL: http://svnweb.freebsd.org/changeset/base/247603
>
> Log:
>   Try to use a better type for 'cc_waiting' and 'cc_cancel' fields of
>   cc_exec structure. Their value has to be only 0 or 1 and this change
>   try to make this more evident.
>
>   Suggested by: attilio

Usually you may also use TRUE/FALSE, but in few places in the kernel
they are checked against 0 (==0 or != 0) so that would be fine. I just
wouldn't assing them directly 1 as I'm sure this is still the case
somewhere in your kern_timeout.c.

Attilio


-- 
Peace can only be achieved by understanding - A. Einstein


More information about the svn-src-projects mailing list