mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-27 07:59:35 +01:00
dirparse: curlybraceify if statements
This commit is contained in:
parent
b3affc23ef
commit
ad1b378e87
1 changed files with 8 additions and 4 deletions
|
@ -1168,14 +1168,18 @@ networkstatus_parse_vote_from_string(const char *s, const char **eos_out,
|
|||
}
|
||||
}
|
||||
|
||||
if ((tok = find_opt_by_keyword(tokens, K_RECOMMENDED_CLIENT_PROTOCOLS)))
|
||||
if ((tok = find_opt_by_keyword(tokens, K_RECOMMENDED_CLIENT_PROTOCOLS))) {
|
||||
ns->recommended_client_protocols = tor_strdup(tok->args[0]);
|
||||
if ((tok = find_opt_by_keyword(tokens, K_RECOMMENDED_RELAY_PROTOCOLS)))
|
||||
}
|
||||
if ((tok = find_opt_by_keyword(tokens, K_RECOMMENDED_RELAY_PROTOCOLS))) {
|
||||
ns->recommended_relay_protocols = tor_strdup(tok->args[0]);
|
||||
if ((tok = find_opt_by_keyword(tokens, K_REQUIRED_CLIENT_PROTOCOLS)))
|
||||
}
|
||||
if ((tok = find_opt_by_keyword(tokens, K_REQUIRED_CLIENT_PROTOCOLS))) {
|
||||
ns->required_client_protocols = tor_strdup(tok->args[0]);
|
||||
if ((tok = find_opt_by_keyword(tokens, K_REQUIRED_RELAY_PROTOCOLS)))
|
||||
}
|
||||
if ((tok = find_opt_by_keyword(tokens, K_REQUIRED_RELAY_PROTOCOLS))) {
|
||||
ns->required_relay_protocols = tor_strdup(tok->args[0]);
|
||||
}
|
||||
|
||||
tok = find_by_keyword(tokens, K_VALID_AFTER);
|
||||
if (parse_iso_time(tok->args[0], &ns->valid_after))
|
||||
|
|
Loading…
Add table
Reference in a new issue