diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-01-21 19:09:09 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-01-21 19:09:09 +0100 |
commit | a84ce9284362b3d5a3a3598f43a1ef27e51d7439 (patch) | |
tree | 6b01a1e48259c6f624c943fafce4e288d4cf9dae | |
parent | 998300562e14f9d07293ec41e1aecca5930d5e6d (diff) | |
download | fastd-a84ce9284362b3d5a3a3598f43a1ef27e51d7439.tar fastd-a84ce9284362b3d5a3a3598f43a1ef27e51d7439.zip |
Fix indentation in handshake packet alloc
-rw-r--r-- | src/handshake.c | 26 |
1 files 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; |