Re: [PATCH V2] debugfs: don't assume sizeof(bool) to be 4 bytes

From
Mark Brown <hidden>
Date
2015-09-14 17:12:55
Also in
alsa-devel, linux-acpi, linux-bluetooth, linux-iommu, linux-mm, linux-scsi
Reply to
Viresh Kumar, 2015-09-14
On Mon, Sep 14, 2015 at 09:21:54AM +0530, Viresh Kumar wrote:
Long back 'bool' type used to be a typecast to 'int', but that changed
in v2.6.19. And that is a typecast to _Bool now, which (mostly) takes
just a byte. Anyway, the bool type is implementation defined, and better
we don't assume its size to be 4 bytes or 1.
Acked-by: Mark Brown <redacted>
Thread (7 messages) 7 messages, 4 authors, 2015-09-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help