mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
prop250: Change reveal_num to uint64_t and version to uint32_t
Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user