summaryrefslogtreecommitdiffstats
path: root/src/task.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/task.c')
-rw-r--r--src/task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/task.c b/src/task.c
index ed7f7cc..0d2dd6e 100644
--- a/src/task.c
+++ b/src/task.c
@@ -45,11 +45,11 @@ static void fastd_task_put_send_type(fastd_context *ctx, fastd_peer *peer, uint8
}
void fastd_task_put_send_handshake(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer) {
- fastd_task_put_send_type(ctx, peer, 1, buffer);
+ fastd_task_put_send_type(ctx, peer, PACKET_HANDSHAKE, buffer);
}
void fastd_task_put_send(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer) {
- fastd_task_put_send_type(ctx, peer, 0, buffer);
+ fastd_task_put_send_type(ctx, peer, PACKET_DATA, buffer);
}
void fastd_task_put_handle_recv(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer) {