[tor-bugs] #27661 [Core Tor/Tor]: use C99 bool from stdbool.h instead of int everywhere
Tor Bug Tracker & Wiki
blackhole at torproject.org
Fri Sep 14 01:38:03 UTC 2018
#27661: use C99 bool from stdbool.h instead of int everywhere
-------------------------------------------------+-------------------------
Reporter: cyberpunks | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: Tor:
| unspecified
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: coccinelle, tor-client, technical- | Actual Points:
debt, c99 |
Parent ID: #13260 | Points:
Reviewer: | Sponsor:
-------------------------------------------------+-------------------------
Comment (by nickm):
I'm fine with returning a bool from functions that are logically boolean,
but we shouldn't change the convention for functions where "0" indicates
success and "-1" indicates an error.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27661#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list