diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-01-09 11:43:49 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-01-09 11:43:49 -0500 |
commit | e28e41dd78ef48c5176c07b8068bb2b3afce2b85 (patch) | |
tree | 066838cea6d712cfec9c2d0c649ee95345ddf9f4 /src/test/test_rendcache.c | |
parent | 42c6fc851e7ffbe96a632d6045a334136621c164 (diff) | |
download | tor-e28e41dd78ef48c5176c07b8068bb2b3afce2b85.tar.gz tor-e28e41dd78ef48c5176c07b8068bb2b3afce2b85.zip |
Fix wide lines from NS() removal fallout.
Diffstat (limited to 'src/test/test_rendcache.c')
-rw-r--r-- | src/test/test_rendcache.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/test/test_rendcache.c b/src/test/test_rendcache.c index d0cb4378ac..e396f9fd50 100644 --- a/src/test/test_rendcache.c +++ b/src/test/test_rendcache.c @@ -367,13 +367,12 @@ test_rend_cache_store_v2_desc_as_client_with_different_time(void *data) rend_data_free(mock_rend_query); } -static const routerinfo_t * rcache_lookup_v2_desc_as_dir_router_get_my_routerinfo(void); -ATTR_UNUSED static int rcache_lookup_v2_desc_as_dir_router_get_my_routerinfo_called = 0; +static const routerinfo_t *rcache_lookup_v2_as_dir_get_my_routerinfo(void); static routerinfo_t *mock_routerinfo; static const routerinfo_t * -rcache_lookup_v2_desc_as_dir_router_get_my_routerinfo(void) +rcache_lookup_v2_as_dir_get_my_routerinfo(void) { if (!mock_routerinfo) { mock_routerinfo = tor_malloc(sizeof(routerinfo_t)); @@ -394,7 +393,7 @@ test_rend_cache_lookup_v2_desc_as_dir(void *data) (void)data; MOCK(router_get_my_routerinfo, - rcache_lookup_v2_desc_as_dir_router_get_my_routerinfo); + rcache_lookup_v2_as_dir_get_my_routerinfo); rend_cache_init(); @@ -424,11 +423,10 @@ test_rend_cache_lookup_v2_desc_as_dir(void *data) tor_free(service_id); } -static const routerinfo_t * rcache_store_v2_desc_as_dir_router_get_my_routerinfo(void); -ATTR_UNUSED static int rcache_store_v2_desc_as_dir_router_get_my_routerinfo_called = 0; +static const routerinfo_t *rcache_store_v2_as_dir_get_my_routerinfo(void); static const routerinfo_t * -rcache_store_v2_desc_as_dir_router_get_my_routerinfo(void) +rcache_store_v2_as_dir_get_my_routerinfo(void) { return mock_routerinfo; } @@ -442,7 +440,7 @@ test_rend_cache_store_v2_desc_as_dir(void *data) char *service_id = NULL; MOCK(router_get_my_routerinfo, - rcache_store_v2_desc_as_dir_router_get_my_routerinfo); + rcache_store_v2_as_dir_get_my_routerinfo); rend_cache_init(); @@ -504,7 +502,7 @@ test_rend_cache_store_v2_desc_as_dir_with_different_time(void *data) rend_encoded_v2_service_descriptor_t *desc_holder_older; MOCK(router_get_my_routerinfo, - rcache_store_v2_desc_as_dir_router_get_my_routerinfo); + rcache_store_v2_as_dir_get_my_routerinfo); rend_cache_init(); @@ -568,7 +566,7 @@ test_rend_cache_store_v2_desc_as_dir_with_different_content(void *data) rend_encoded_v2_service_descriptor_t *desc_holder_two = NULL; MOCK(router_get_my_routerinfo, - rcache_store_v2_desc_as_dir_router_get_my_routerinfo); + rcache_store_v2_as_dir_get_my_routerinfo); rend_cache_init(); |