aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth/shared_random_state.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-01-10 15:13:30 -0500
committerNick Mathewson <nickm@torproject.org>2020-02-06 14:54:04 -0500
commit99a5aecbc779985629abce22dfc00a4e9d6ccb9e (patch)
tree25ad3754ba87a24f50858f9809a8269dcfe531cb /src/feature/dirauth/shared_random_state.c
parent06a6130666315cb1d385b89d7c95df42ac17db1a (diff)
downloadtor-99a5aecbc779985629abce22dfc00a4e9d6ccb9e.tar.gz
tor-99a5aecbc779985629abce22dfc00a4e9d6ccb9e.zip
Wrap columnar tables in "clang-format off/on"
These tables have aligned comments, so we don't want clang-format to mess with them.
Diffstat (limited to 'src/feature/dirauth/shared_random_state.c')
-rw-r--r--src/feature/dirauth/shared_random_state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/dirauth/shared_random_state.c b/src/feature/dirauth/shared_random_state.c
index 1792d540c6..52d9dc3448 100644
--- a/src/feature/dirauth/shared_random_state.c
+++ b/src/feature/dirauth/shared_random_state.c
@@ -60,6 +60,7 @@ DUMMY_TYPECHECK_INSTANCE(sr_disk_state_t);
#define SR_DISK_STATE_MAGIC 0x98AB1254
/** Array of variables that are saved to disk as a persistent state. */
+// clang-format off
static const config_var_t state_vars[] = {
V(Version, POSINT, "0"),
V(TorVersion, STRING, NULL),
@@ -73,6 +74,7 @@ static const config_var_t state_vars[] = {
VAR("SharedRandCurrentValue", LINELIST_S, SharedRandValues, NULL),
END_OF_CONFIG_VARS
};
+// clang-format on
/** "Extra" variable in the state that receives lines we can't parse. This
* lets us preserve options from versions of Tor newer than us. */