From a84ce9284362b3d5a3a3598f43a1ef27e51d7439 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 21 Jan 2013 19:09:09 +0100 Subject: Fix indentation in handshake packet alloc --- src/handshake.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/handshake.c b/src/handshake.c index 9273972..860ec1b 100644 --- a/src/handshake.c +++ b/src/handshake.c @@ -93,14 +93,14 @@ fastd_buffer_t fastd_handshake_new_init(fastd_context_t *ctx, size_t tail_space) uint8_t *method_list = create_method_list(ctx, &method_list_len); fastd_buffer_t buffer = fastd_buffer_alloc(ctx, sizeof(fastd_packet_t), 0, - 2*5 + /* handshake type, mode */ - 6 + /* MTU */ - 4+version_len + /* version name */ - 4+protocol_len + /* protocol name */ - 4+method_len + /* method name */ - 4+method_list_len + /* supported method name list */ - tail_space - ); + 2*5 + /* handshake type, mode */ + 6 + /* MTU */ + 4+version_len + /* version name */ + 4+protocol_len + /* protocol name */ + 4+method_len + /* method name */ + 4+method_list_len + /* supported method name list */ + tail_space + ); fastd_packet_t *request = buffer.data; request->rsv1 = 0; @@ -144,11 +144,11 @@ fastd_buffer_t fastd_handshake_new_reply(fastd_context_t *ctx, const fastd_hands 4+version_len; /* version name */ fastd_buffer_t buffer = fastd_buffer_alloc(ctx, sizeof(fastd_packet_t), 0, - 2*5 + /* handshake type, reply code */ - 4+method_len + /* method name */ - extra_size + - tail_space - ); + 2*5 + /* handshake type, reply code */ + 4+method_len + /* method name */ + extra_size + + tail_space + ); fastd_packet_t *request = buffer.data; request->rsv1 = 0; -- cgit v1.2.3