aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-04-02 12:45:12 -0400
committerNick Mathewson <nickm@torproject.org>2013-04-18 11:04:58 -0400
commit0f83fcc5c239776211d0c111c628a7f95a802808 (patch)
tree3861884b840977e1f1cae742b4b0f01a50bdcd4a /src/or/dirserv.c
parent6706a05b795135ea4035c36fb3c57ecff0f815fc (diff)
downloadtor-0f83fcc5c239776211d0c111c628a7f95a802808.tar.gz
tor-0f83fcc5c239776211d0c111c628a7f95a802808.zip
Add a quick-and-dirty-test for generate_v2_networkstatus.
It sure is a good thing we can run each test in its own process, or else the amount of setup I needed to do to make this thing work would have broken all the other tests. Test mocking would have made this easier to write too.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 2bbfc9a7c6..173c8cd14a 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -2904,7 +2904,7 @@ dirserv_generate_networkstatus_vote_obj(crypto_pk_t *private_key,
/** For v2 authoritative directories only: Replace the contents of
* <b>the_v2_networkstatus</b> with a newly generated network status
* object. */
-static cached_dir_t *
+cached_dir_t *
generate_v2_networkstatus_opinion(void)
{
cached_dir_t *r = NULL;