diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-01-09 09:56:41 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-01-09 09:56:41 -0500 |
commit | 1ffba2f1217e5025dd2e6fe783517a22e225c63b (patch) | |
tree | 17bb48e79372254d2c30ae059de3dc611742a55c /src/test/test_router.c | |
parent | e45810113b150533611c7d9cb5f0f264e00a7394 (diff) | |
download | tor-1ffba2f1217e5025dd2e6fe783517a22e225c63b.tar.gz tor-1ffba2f1217e5025dd2e6fe783517a22e225c63b.zip |
Always define NS_MODULE and NS_SUBMODULE when NS is used.
When these macros aren't defined, the expansions of the NS macros
can get particularly ugly.
Diffstat (limited to 'src/test/test_router.c')
-rw-r--r-- | src/test/test_router.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_router.c b/src/test/test_router.c index 79f56eed07..a1ea2967ff 100644 --- a/src/test/test_router.c +++ b/src/test/test_router.c @@ -31,6 +31,9 @@ #include "test/test.h" #include "test/log_test_helpers.h" +#define NS_MODULE rtr +#define NS_SUBMODULE tests + NS_DECL(const routerinfo_t *, router_get_my_routerinfo, (void)); static routerinfo_t* mock_routerinfo; |