summaryrefslogtreecommitdiffstats
path: root/src/method_null.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-02-27 21:28:40 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-02-27 21:28:40 +0100
commite2bcecad821f841ac40d0e0939f5805f8d142700 (patch)
tree9225c3b6d783f67043ac980bd01a8c13e8454fb4 /src/method_null.c
parent13306fc146b4839d511287f29df8572a80bf8914 (diff)
downloadfastd-e2bcecad821f841ac40d0e0939f5805f8d142700.tar
fastd-e2bcecad821f841ac40d0e0939f5805f8d142700.zip
Use custom buffers instead of struct iovec
Diffstat (limited to 'src/method_null.c')
-rw-r--r--src/method_null.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/method_null.c b/src/method_null.c
index dea84d4..34d1cce 100644
--- a/src/method_null.c
+++ b/src/method_null.c
@@ -33,15 +33,15 @@ static size_t null_max_packet_size(fastd_context *ctx) {
}
static void null_init(fastd_context *ctx, const fastd_peer *peer) {
- struct iovec buffer = { .iov_base = NULL, .iov_len = 0 };
+ fastd_buffer buffer = { .base = NULL, .len = 0, .free = NULL, .free_p = NULL };
fastd_task_put_send(ctx, peer, buffer);
}
-static void null_handle_recv(fastd_context *ctx, const fastd_peer *peer, struct iovec buffer) {
+static void null_handle_recv(fastd_context *ctx, const fastd_peer *peer, fastd_buffer buffer) {
fastd_task_put_handle_recv(ctx, peer, buffer);
}
-static void null_send(fastd_context *ctx, const fastd_peer *peer, struct iovec buffer) {
+static void null_send(fastd_context *ctx, const fastd_peer *peer, fastd_buffer buffer) {
fastd_task_put_send(ctx, peer, buffer);
}