diff options
author | teor <teor@riseup.net> | 2020-05-11 18:10:07 +1000 |
---|---|---|
committer | teor <teor@riseup.net> | 2020-05-18 21:53:52 +1000 |
commit | a3244c03fb586268da72fbe90bc8f4def85aaff7 (patch) | |
tree | 7ebef6f38107ead7f8d51c8bea078d03b643ee78 /src/feature/nodelist/node_select.c | |
parent | 3f7f976d4812a92bdbf5f14e25db0d276f123cef (diff) | |
download | tor-a3244c03fb586268da72fbe90bc8f4def85aaff7.tar.gz tor-a3244c03fb586268da72fbe90bc8f4def85aaff7.zip |
nodelist: Replace int with bool
Make some interfaces and implementations consistent by replacing int
with bool.
Part of 34200.
Diffstat (limited to 'src/feature/nodelist/node_select.c')
-rw-r--r-- | src/feature/nodelist/node_select.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/feature/nodelist/node_select.c b/src/feature/nodelist/node_select.c index 85ef5ad568..25904d4c63 100644 --- a/src/feature/nodelist/node_select.c +++ b/src/feature/nodelist/node_select.c @@ -980,10 +980,10 @@ router_choose_random_node(smartlist_t *excludedsmartlist, { /* A limited set of flags, used for fallback node selection. */ - const int need_uptime = (flags & CRN_NEED_UPTIME) != 0; - const int need_capacity = (flags & CRN_NEED_CAPACITY) != 0; - const int need_guard = (flags & CRN_NEED_GUARD) != 0; - const int pref_addr = (flags & CRN_PREF_ADDR) != 0; + const bool need_uptime = (flags & CRN_NEED_UPTIME) != 0; + const bool need_capacity = (flags & CRN_NEED_CAPACITY) != 0; + const bool need_guard = (flags & CRN_NEED_GUARD) != 0; + const bool pref_addr = (flags & CRN_PREF_ADDR) != 0; smartlist_t *excludednodes=smartlist_new(); const node_t *choice = NULL; |