From 6390442c477b603d87680f8b415c1ec0dfaa9ebf Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 28 Feb 2012 22:40:53 +0100 Subject: Rework buffer structure --- src/method_null.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/method_null.c') diff --git a/src/method_null.c b/src/method_null.c index 75e74de..60e612d 100644 --- a/src/method_null.c +++ b/src/method_null.c @@ -33,8 +33,7 @@ static size_t null_max_packet_size(fastd_context *ctx) { } static void null_init(fastd_context *ctx, fastd_peer *peer) { - fastd_buffer buffer = { .base = NULL, .len = 0, .free = NULL, .free_p = NULL }; - fastd_task_put_send(ctx, peer, buffer); + fastd_task_put_send(ctx, peer, fastd_buffer_alloc(0, 0, 0)); } static void null_handle_recv(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer) { -- cgit v1.2.3