diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-18 10:53:12 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-26 22:06:14 -0600 |
commit | 865bb702f828784a0225b5eae9ed8803094140d5 (patch) | |
tree | b579303cc5df38191ee9e8ad63793fbe4c867c02 /lib9p/tests | |
parent | 63fcccd84cb348b1b4194024a0dea4dd81941daf (diff) |
lib9p: Adjust for reads to be zero-copy
Diffstat (limited to 'lib9p/tests')
-rw-r--r-- | lib9p/tests/test_server/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib9p/tests/test_server/main.c b/lib9p/tests/test_server/main.c index b993714..c759029 100644 --- a/lib9p/tests/test_server/main.c +++ b/lib9p/tests/test_server/main.c @@ -124,7 +124,9 @@ static uint32_t api_pwrite(struct api_file *self, struct lib9p_srv_ctx *ctx, voi LO_CALL(lo_box_hostnet_tcplist_as_net_stream_listener(&globals.listeners[i]), close); return byte_count; } -static uint32_t api_pread(struct api_file *, struct lib9p_srv_ctx *, void *, uint32_t, uint64_t) { +static void api_pread(struct api_file *LM_UNUSED(self), struct lib9p_srv_ctx *LM_UNUSED(ctx), + uint32_t LM_UNUSED(byte_count), uint64_t LM_UNUSED(byte_offset), + struct iovec *LM_UNUSED(ret)) { assert_notreached("not readable"); } |