aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth/dirauth_config.h
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-03-20 17:01:06 +1000
committerNick Mathewson <nickm@torproject.org>2020-03-20 07:56:26 -0400
commitd4a74021e5ab9dbaf3bb27c0a52e1fd7f8f792ab (patch)
treed34e4c2215ea3b778ccbc1395dc1d38860dd1f2d /src/feature/dirauth/dirauth_config.h
parentc478dc9b2f6c320cc21a10ffed0d7cc245fa933c (diff)
downloadtor-d4a74021e5ab9dbaf3bb27c0a52e1fd7f8f792ab.tar.gz
tor-d4a74021e5ab9dbaf3bb27c0a52e1fd7f8f792ab.zip
relay/dirauth: Set some output arguments in stubs
And document how some functions set their output arguments. Fixes bug 33674; bugfix on 0.4.3.1-alpha.
Diffstat (limited to 'src/feature/dirauth/dirauth_config.h')
-rw-r--r--src/feature/dirauth/dirauth_config.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/feature/dirauth/dirauth_config.h b/src/feature/dirauth/dirauth_config.h
index ede1207a83..9042ff8779 100644
--- a/src/feature/dirauth/dirauth_config.h
+++ b/src/feature/dirauth/dirauth_config.h
@@ -75,8 +75,14 @@ options_validate_dirauth_mode(const struct or_options_t *old_options,
#define options_act_dirauth_mtbf(old_options) \
(((void)(old_options)),0)
-#define options_act_dirauth_stats(old_options, print_notice_out) \
- (((void)(old_options)),((void)(print_notice_out)),0)
+static inline int
+options_act_dirauth_stats(const struct or_options_t *old_options,
+ bool *print_notice_out)
+{
+ (void)old_options;
+ *print_notice_out = 0;
+ return 0;
+}
#define dirauth_should_reject_requests_under_load() (false)