summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2017-05-12 13:17:43 +0200
committerAlexander Færøy <ahf@torproject.org>2017-05-12 17:18:45 +0200
commit59d17ca2bb6ab243bd58b29d26ccf6dd10741abe (patch)
tree1dd7ea507bf9eefb381c6ebd9ceb545cdc684713 /src/or/directory.c
parentef187bc280f1501bd7918b9c76a692027b320a67 (diff)
downloadtor-59d17ca2bb6ab243bd58b29d26ccf6dd10741abe.tar.gz
tor-59d17ca2bb6ab243bd58b29d26ccf6dd10741abe.zip
Fix indentation when using the ternary operator in handle_get_status_vote().
See: https://bugs.torproject.org/21667
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index ed4f961acf..7965ffd0ac 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -3926,9 +3926,8 @@ handle_get_status_vote(dir_connection_t *conn, const get_handler_args_t *args)
goto vote_done;
}
SMARTLIST_FOREACH(dir_items, cached_dir_t *, d,
- body_len += compress_method != NO_METHOD
- ? d->dir_compressed_len
- : d->dir_len);
+ body_len += compress_method != NO_METHOD ?
+ d->dir_compressed_len : d->dir_len);
estimated_len += body_len;
SMARTLIST_FOREACH(items, const char *, 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 {
SMARTLIST_FOREACH(dir_items, cached_dir_t *, d,
- connection_write_to_buf(compress_method != NO_METHOD
- ? d->dir_compressed : d->dir,
- compress_method != NO_METHOD
- ? d->dir_compressed_len : d->dir_len,
+ connection_write_to_buf(compress_method != NO_METHOD ?
+ d->dir_compressed : d->dir,
+ compress_method != NO_METHOD ?
+ d->dir_compressed_len : d->dir_len,
TO_CONN(conn)));
}
vote_done: