summaryrefslogtreecommitdiff
path: root/src/or/routerlist.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2014-06-24 14:12:51 -0400
committerGeorge Kadianakis <desnacked@riseup.net>2014-06-24 14:19:07 -0400
commit4245662b28d04f2c7d51b8175031007a80f1c3e5 (patch)
treecd3f53c3336709f73d3464f4eb7c5ed46ae4837f /src/or/routerlist.h
parent727ed5448a8e63fb8116bb691d55c99bc1ca03f6 (diff)
downloadtor-4245662b28d04f2c7d51b8175031007a80f1c3e5.tar.gz
tor-4245662b28d04f2c7d51b8175031007a80f1c3e5.zip
Functionify the descriptor age check so that we can NOP it in tests.
Diffstat (limited to 'src/or/routerlist.h')
-rw-r--r--src/or/routerlist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/routerlist.h b/src/or/routerlist.h
index 6e2f2eaea0..adf5d32209 100644
--- a/src/or/routerlist.h
+++ b/src/or/routerlist.h
@@ -212,6 +212,8 @@ 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(int, router_descriptor_is_too_old, (const routerinfo_t *router));
#endif
#endif