diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2018-06-03 16:45:09 +0300 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2018-06-03 16:45:09 +0300 |
commit | 9876575d2c14ced3febca0c1a65808585fe8504d (patch) | |
tree | 8db89f09170ea7da5861e5a9dd289f01ebef2e8e /src | |
parent | 3716ddf1b42270b5db76f8b7b458c5f61aa40e23 (diff) | |
download | tor-9876575d2c14ced3febca0c1a65808585fe8504d.tar.gz tor-9876575d2c14ced3febca0c1a65808585fe8504d.zip |
Silence -Wbad-function-cast warning (when DEBUG_SMARTLIST is on)
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 7603eb3ecf..8788dc0190 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -2764,7 +2764,7 @@ frac_nodes_with_descriptors(const smartlist_t *sl, if (node_has_any_descriptor(node)) n_with_descs++; }); - return ((double)n_with_descs) / (double)smartlist_len(sl); + return ((double)n_with_descs) / smartlist_len(sl); } present = 0.0; |