diff options
author | Arlo Breault <arlolra@gmail.com> | 2014-09-23 12:21:08 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-23 12:21:08 -0400 |
commit | 21d5dbd474d5dad10a2bfa800df078f7fdc8c40b (patch) | |
tree | 7e61f05ff610fa1d98d345aa91933b46c22e394c /src/or/routerlist.h | |
parent | 29f15a97edb05d175b97154e0b1c96fd04485ee2 (diff) | |
download | tor-21d5dbd474d5dad10a2bfa800df078f7fdc8c40b.tar.gz tor-21d5dbd474d5dad10a2bfa800df078f7fdc8c40b.zip |
Refactor initiate_descriptor_downloads() to be safer
(It's smarter to use asprintf and join than character pointers and a
long buffer.)
Diffstat (limited to 'src/or/routerlist.h')
-rw-r--r-- | src/or/routerlist.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/routerlist.h b/src/or/routerlist.h index cfa8683861..1e8b7c9721 100644 --- a/src/or/routerlist.h +++ b/src/or/routerlist.h @@ -211,6 +211,10 @@ STATIC int choose_array_element_by_weight(const u64_dbl_t *entries, int n_entries); STATIC void scale_array_elements_to_u64(u64_dbl_t *entries, int n_entries, uint64_t *total_out); +MOCK_DECL(STATIC void, initiate_descriptor_downloads, + (const routerstatus_t *source, int purpose, smartlist_t *digests, + int lo, int hi, int pds_flags)); + #endif #endif |