aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2016-06-25 08:31:45 +0000
committerAndrea Shepard <andrea@torproject.org>2016-06-30 07:03:25 +0000
commit2a17b93cc45e62c589de4f413ab0314f9bf72193 (patch)
treecf07444b9fe8db3847288e80114d8c7963319af2 /src/or/config.c
parent35fc5879fb15177581284537f5b5286110590555 (diff)
downloadtor-2a17b93cc45e62c589de4f413ab0314f9bf72193.tar.gz
tor-2a17b93cc45e62c589de4f413ab0314f9bf72193.zip
Make options_get_datadir_fname2_suffix() mockable
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/config.c b/src/or/config.c
index b00f8a9244..18ee9790f6 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -7229,10 +7229,10 @@ init_libevent(const or_options_t *options)
*
* Note: Consider using the get_datadir_fname* macros in or.h.
*/
-char *
-options_get_datadir_fname2_suffix(const or_options_t *options,
- const char *sub1, const char *sub2,
- const char *suffix)
+MOCK_IMPL(char *,
+options_get_datadir_fname2_suffix,(const or_options_t *options,
+ const char *sub1, const char *sub2,
+ const char *suffix))
{
char *fname = NULL;
size_t len;