diff options
author | David Goulet <dgoulet@torproject.org> | 2016-05-26 12:25:01 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2016-07-01 14:01:42 -0400 |
commit | e62f3133bb0404b3c70dd59f37b2706bf75eb800 (patch) | |
tree | 27343f8702516877c6f3c6b5a166cbf937ba5dcb /src/or/shared_random_state.c | |
parent | 899d2b890b35b9772f33054b9ff627dd8186deac (diff) | |
download | tor-e62f3133bb0404b3c70dd59f37b2706bf75eb800.tar.gz tor-e62f3133bb0404b3c70dd59f37b2706bf75eb800.zip |
prop250: Change reveal_num to uint64_t and version to uint32_t
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/shared_random_state.c')
-rw-r--r-- | src/or/shared_random_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/shared_random_state.c b/src/or/shared_random_state.c index 87126f5d62..eeffb1479e 100644 --- a/src/or/shared_random_state.c +++ b/src/or/shared_random_state.c @@ -60,7 +60,7 @@ disk_state_validate_cb(void *old_state, void *state, void *default_state, /* Array of variables that are saved to disk as a persistent state. */ static config_var_t state_vars[] = { - V(Version, INT, "0"), + V(Version, UINT, "0"), V(TorVersion, STRING, NULL), V(ValidAfter, ISOTIME, NULL), V(ValidUntil, ISOTIME, NULL), @@ -590,7 +590,7 @@ disk_state_put_srv_line(const sr_srv_t *srv, config_line_t *line) return; } sr_srv_encode(encoded, sizeof(encoded), srv); - tor_asprintf(&line->value, "%d %s", srv->num_reveals, encoded); + tor_asprintf(&line->value, "%" PRIu64 " %s", srv->num_reveals, encoded); } /* Reset disk state that is free allocated memory and zeroed the object. */ |