[tor-commits] [tor/master] whitespace fixes
nickm at torproject.org
nickm at torproject.org
Wed Jan 18 22:15:59 UTC 2017
commit 85a17ee2e784eeb6db32c178cbc2e2620ef3b765
Author: Nick Mathewson <nickm at torproject.org>
Date: Wed Jan 18 17:14:42 2017 -0500
whitespace fixes
---
src/or/hs_intropoint.c | 1 +
src/test/test_hs_intropoint.c | 15 ++++++++++-----
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/or/hs_intropoint.c b/src/or/hs_intropoint.c
index 04f8c62..db4ba79 100644
--- a/src/or/hs_intropoint.c
+++ b/src/or/hs_intropoint.c
@@ -592,3 +592,4 @@ hs_intro_received_introduce1(or_circuit_t *circ, const uint8_t *request,
circuit_mark_for_close(TO_CIRCUIT(circ), END_CIRC_REASON_TORPROTOCOL);
return -1;
}
+
diff --git a/src/test/test_hs_intropoint.c b/src/test/test_hs_intropoint.c
index e126cbc..1d620e1 100644
--- a/src/test/test_hs_intropoint.c
+++ b/src/test/test_hs_intropoint.c
@@ -44,7 +44,8 @@ mock_send_intro_established_cell(or_circuit_t *circ)
static int
mock_relay_send_command_from_edge(streamid_t stream_id, circuit_t *circ,
uint8_t relay_command, const char *payload,
- size_t payload_len, crypt_path_t *cpath_layer,
+ size_t payload_len,
+ crypt_path_t *cpath_layer,
const char *filename, int lineno)
{
(void) stream_id;
@@ -763,12 +764,14 @@ test_received_introduce1_handling(void *arg)
size_t request_len = hs_cell_introduce1_encoded_len(cell);
tt_size_op(request_len, OP_GT, 0);
request = tor_malloc_zero(request_len);
- ssize_t encoded_len = hs_cell_introduce1_encode(request, request_len, cell);
+ ssize_t encoded_len =
+ hs_cell_introduce1_encode(request, request_len, cell);
tt_size_op(encoded_len, OP_GT, 0);
circ = helper_create_intro_circuit();
or_circuit_t *service_circ = helper_create_intro_circuit();
- circuit_change_purpose(TO_CIRCUIT(service_circ), CIRCUIT_PURPOSE_INTRO_POINT);
+ circuit_change_purpose(TO_CIRCUIT(service_circ),
+ CIRCUIT_PURPOSE_INTRO_POINT);
/* Register the circuit in the map for the auth key of the cell. */
ed25519_public_key_t auth_key;
const uint8_t *cell_auth_key =
@@ -792,12 +795,14 @@ test_received_introduce1_handling(void *arg)
size_t request_len = hs_cell_introduce1_encoded_len(cell) + 256;
tt_size_op(request_len, OP_GT, 0);
request = tor_malloc_zero(request_len + 256);
- ssize_t encoded_len = hs_cell_introduce1_encode(request, request_len, cell);
+ ssize_t encoded_len =
+ hs_cell_introduce1_encode(request, request_len, cell);
tt_size_op(encoded_len, OP_GT, 0);
circ = helper_create_intro_circuit();
or_circuit_t *service_circ = helper_create_intro_circuit();
- circuit_change_purpose(TO_CIRCUIT(service_circ), CIRCUIT_PURPOSE_INTRO_POINT);
+ circuit_change_purpose(TO_CIRCUIT(service_circ),
+ CIRCUIT_PURPOSE_INTRO_POINT);
/* Register the circuit in the map for the auth key of the cell. */
uint8_t token[REND_TOKEN_LEN];
memcpy(token, legacy_key_id, sizeof(token));
More information about the tor-commits
mailing list