Use boolean type defined in stdbool.h

Bug #653325 reported by Christof Mroz
6
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.c:781: "const int boolean"
firewall/rule_management.h:49: "int boolean"
...

Revision history for this message
René Hummen (rene-hummen) wrote :

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.

Changed in hipl:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → Diego Biurrun (diego-biurrun)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.