[sheepdog] [PATCH v2 1/2] util: change type of uatomic_bool from unsigned long to struct
Liu Yuan
namei.unix at gmail.com
Tue Jan 29 07:10:41 CET 2013
On 01/29/2013 02:01 PM, Hitoshi Mitake wrote:
> uatomic_bool shouldn't be typedefed unsigned long. Because it allows
> simple assignment statements whose left expression is uatomic_bool
> typed. This would cause subtle bugs.
>
> This patch makes uatomic_bool as a typedefed struct. This forbid
> illegal direct assignments to uatomic_bool variables.
Applied this series. Thanks.
Yuan
More information about the sheepdog
mailing list