mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Fix indentation when using the ternary operator in handle_get_status_vote().
See: https://bugs.torproject.org/21667
This commit is contained in:
parent
ef187bc280
commit
59d17ca2bb
@ -3926,9 +3926,8 @@ handle_get_status_vote(dir_connection_t *conn, const get_handler_args_t *args)
|
|||||||
goto vote_done;
|
goto vote_done;
|
||||||
}
|
}
|
||||||
SMARTLIST_FOREACH(dir_items, cached_dir_t *, d,
|
SMARTLIST_FOREACH(dir_items, cached_dir_t *, d,
|
||||||
body_len += compress_method != NO_METHOD
|
body_len += compress_method != NO_METHOD ?
|
||||||
? d->dir_compressed_len
|
d->dir_compressed_len : d->dir_len);
|
||||||
: d->dir_len);
|
|
||||||
estimated_len += body_len;
|
estimated_len += body_len;
|
||||||
SMARTLIST_FOREACH(items, const char *, item, {
|
SMARTLIST_FOREACH(items, const char *, item, {
|
||||||
size_t ln = strlen(item);
|
size_t ln = strlen(item);
|
||||||
@ -3960,10 +3959,10 @@ handle_get_status_vote(dir_connection_t *conn, const get_handler_args_t *args)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
SMARTLIST_FOREACH(dir_items, cached_dir_t *, d,
|
SMARTLIST_FOREACH(dir_items, cached_dir_t *, d,
|
||||||
connection_write_to_buf(compress_method != NO_METHOD
|
connection_write_to_buf(compress_method != NO_METHOD ?
|
||||||
? d->dir_compressed : d->dir,
|
d->dir_compressed : d->dir,
|
||||||
compress_method != NO_METHOD
|
compress_method != NO_METHOD ?
|
||||||
? d->dir_compressed_len : d->dir_len,
|
d->dir_compressed_len : d->dir_len,
|
||||||
TO_CONN(conn)));
|
TO_CONN(conn)));
|
||||||
}
|
}
|
||||||
vote_done:
|
vote_done:
|
||||||
|
Loading…
Reference in New Issue
Block a user