summaryrefslogtreecommitdiffstats
path: root/src/method_null.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-02-28 22:40:53 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-02-28 22:40:53 +0100
commit6390442c477b603d87680f8b415c1ec0dfaa9ebf (patch)
treec5f6c6a5415add9548ad0c17ce051bcaa3b8eb15 /src/method_null.c
parent35742ca05a8826541207faaa9584708da5485d95 (diff)
downloadfastd-6390442c477b603d87680f8b415c1ec0dfaa9ebf.tar
fastd-6390442c477b603d87680f8b415c1ec0dfaa9ebf.zip
Rework buffer structure
Diffstat (limited to 'src/method_null.c')
-rw-r--r--src/method_null.c3
1 files changed, 1 insertions, 2 deletions
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) {