diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-06-19 08:34:20 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-06-25 12:51:25 -0400 |
commit | 59317c8a238f49ad298d4f51f42a0f7b16c9cc3c (patch) | |
tree | 1460e526b36de8f52788f585ef8760def3cd8fb2 /src/feature | |
parent | 3a4d67cf45dc1c94a33479c852a3dd7cbd4ebc95 (diff) | |
download | tor-59317c8a238f49ad298d4f51f42a0f7b16c9cc3c.tar.gz tor-59317c8a238f49ad298d4f51f42a0f7b16c9cc3c.zip |
Use struct_magic_decl to verify magic numbers in config objects
Diffstat (limited to 'src/feature')
-rw-r--r-- | src/feature/dirauth/shared_random_state.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/feature/dirauth/shared_random_state.c b/src/feature/dirauth/shared_random_state.c index cf4a654325..da4187b38a 100644 --- a/src/feature/dirauth/shared_random_state.c +++ b/src/feature/dirauth/shared_random_state.c @@ -94,8 +94,11 @@ static struct_member_t state_extra_var = { /* Configuration format of sr_disk_state_t. */ static const config_format_t state_format = { sizeof(sr_disk_state_t), - SR_DISK_STATE_MAGIC, - offsetof(sr_disk_state_t, magic_), + { + "sr_disk_state_t", + SR_DISK_STATE_MAGIC, + offsetof(sr_disk_state_t, magic_), + }, NULL, NULL, state_vars, |