aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth/shared_random_state.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-22 13:52:40 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-22 13:52:40 -0400
commit697d99e50411b29eeb82667a870bd10c5efa9509 (patch)
tree46ba4cdd127232036743d04506dd51d742e2de93 /src/feature/dirauth/shared_random_state.c
parent91413e04b458f41334ea4e25e35829043956b742 (diff)
downloadtor-697d99e50411b29eeb82667a870bd10c5efa9509.tar.gz
tor-697d99e50411b29eeb82667a870bd10c5efa9509.zip
validate_fn(): remove now-unused defaults and from_setconf.
These arguments were only used by options_validate, and are now ignored even there.
Diffstat (limited to 'src/feature/dirauth/shared_random_state.c')
-rw-r--r--src/feature/dirauth/shared_random_state.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/feature/dirauth/shared_random_state.c b/src/feature/dirauth/shared_random_state.c
index 474dcb2711..beeb03448c 100644
--- a/src/feature/dirauth/shared_random_state.c
+++ b/src/feature/dirauth/shared_random_state.c
@@ -60,8 +60,7 @@ DUMMY_TYPECHECK_INSTANCE(sr_disk_state_t);
#define SR_DISK_STATE_MAGIC 0x98AB1254
static int
-disk_state_validate_cb(void *old_state, void *state, void *default_state,
- int from_setconf, char **msg);
+disk_state_validate_cb(void *old_state, void *state, char **msg);
/** Array of variables that are saved to disk as a persistent state. */
static const config_var_t state_vars[] = {
@@ -345,12 +344,9 @@ disk_state_validate(const sr_disk_state_t *state)
/** Validate the disk state (NOP for now). */
static int
-disk_state_validate_cb(void *old_state, void *state, void *default_state,
- int from_setconf, char **msg)
+disk_state_validate_cb(void *old_state, void *state, char **msg)
{
/* We don't use these; only options do. */
- (void) from_setconf;
- (void) default_state;
(void) old_state;
/* This is called by config_dump which is just before we are about to