summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-01-21 19:09:09 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-01-21 19:09:09 +0100
commita84ce9284362b3d5a3a3598f43a1ef27e51d7439 (patch)
tree6b01a1e48259c6f624c943fafce4e288d4cf9dae /src
parent998300562e14f9d07293ec41e1aecca5930d5e6d (diff)
downloadfastd-a84ce9284362b3d5a3a3598f43a1ef27e51d7439.tar
fastd-a84ce9284362b3d5a3a3598f43a1ef27e51d7439.zip
Fix indentation in handshake packet alloc
Diffstat (limited to 'src')
-rw-r--r--src/handshake.c26
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;