Quantcast
Channel: lkml.org : Shesha Sreenivasamurthy
Viewing all articles
Browse latest Browse all 1267

Re: [PATCH] sched/deadline: Use bools for the state flags

$
0
0
Linus Torvalds writes: (Summary) Usually a byte, but I don't think there is any guarantee of it at all.
there is any guarantee of it at all.
Use "bool" mainly as a return type from functions that return true/false, and maybe as local variables in functions. It's a tiny bit more typing, but it's very unambiguous what is going on, and you can specify the base type as you wish and as it makes sense for packing etc.
wish and as it makes sense for packing etc.
Linus
Linus
Linus

Viewing all articles
Browse latest Browse all 1267

Trending Articles