Use boolean type defined in stdbool.h
Bug #653325 reported by
Christof Mroz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HIPL |
Confirmed
|
Medium
|
Diego Biurrun |
Bug Description
Booleans are currently typed as int, even though there's a standards-compliant boolean type available by including stdbool.h.
One practical reason for using a typedef lies in avoiding creative naming like this:
firewall/
firewall/
...
To post a comment you must log in.
This needs to be added to the coding guidelines. Also the boy-scout rule applies: When stumbling across ints that should actually be booleans, change them.
This bug can be closed after clarification in the HACKING document.