diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-12-17 09:28:08 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-12-17 09:28:08 -0500 |
commit | d58a597a55dba2ac468cbdef5172ecda1dc2344f (patch) | |
tree | 878145956a5ebe1e8c35d0d90cd3cc6fb761c63e /src/test/test_hs_service.c | |
parent | f50558ce8ce33339b86ac642d92a27430e066d62 (diff) | |
download | tor-d58a597a55dba2ac468cbdef5172ecda1dc2344f.tar.gz tor-d58a597a55dba2ac468cbdef5172ecda1dc2344f.zip |
Fix dead assignment warning in test_hs_service.c
Diffstat (limited to 'src/test/test_hs_service.c')
-rw-r--r-- | src/test/test_hs_service.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c index ee2d71aa75..79cbd2e5d4 100644 --- a/src/test/test_hs_service.c +++ b/src/test/test_hs_service.c @@ -1396,7 +1396,6 @@ static void test_build_update_descriptors(void *arg) { int ret; - time_t now = time(NULL); node_t *node; hs_service_t *service; hs_service_intro_point_t *ip_cur, *ip_next; @@ -1422,7 +1421,8 @@ test_build_update_descriptors(void *arg) voting_schedule_recalculate_timing(get_options(), mock_ns.valid_after); update_approx_time(mock_ns.valid_after+1); - now = mock_ns.valid_after+1; + + time_t now = mock_ns.valid_after+1; /* Create a service without a current descriptor to trigger a build. */ service = helper_create_service(); |