aboutsummaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_common.c
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2019-04-19 08:33:00 -0400
committerNeel Chauhan <neel@neelc.org>2019-04-19 08:33:00 -0400
commit943559b18066e126652450df4402dca74ba1baa0 (patch)
tree2de15885e3c0f6783d541dbaf4b56f448d484f2b /src/feature/hs/hs_common.c
parent011307dd5fa608739456b98d259b013286320b91 (diff)
downloadtor-943559b18066e126652450df4402dca74ba1baa0.tar.gz
tor-943559b18066e126652450df4402dca74ba1baa0.zip
Make rate_limited and is_rate_limited a bool
Diffstat (limited to 'src/feature/hs/hs_common.c')
-rw-r--r--src/feature/hs/hs_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/hs/hs_common.c b/src/feature/hs/hs_common.c
index cffec2b878..a14ff6a645 100644
--- a/src/feature/hs/hs_common.c
+++ b/src/feature/hs/hs_common.c
@@ -1598,14 +1598,14 @@ hs_purge_last_hid_serv_requests(void)
* NULL if no HSDirs are worth trying right now. */
routerstatus_t *
hs_pick_hsdir(smartlist_t *responsible_dirs, const char *req_key_str,
- int *is_rate_limited)
+ bool *is_rate_limited)
{
smartlist_t *usable_responsible_dirs = smartlist_new();
const or_options_t *options = get_options();
routerstatus_t *hs_dir;
time_t now = time(NULL);
int excluded_some;
- int rate_limited;
+ bool rate_limited;
int rate_limited_count = 0;
int responsible_dirs_count = smartlist_len(responsible_dirs);