From d0ece36e8a041cb3d58194c18d736a0ef9105e75 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sun, 22 Sep 2024 21:25:56 -0600 Subject: wip --- netio_posix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'netio_posix.c') diff --git a/netio_posix.c b/netio_posix.c index 57c46df..3730f98 100644 --- a/netio_posix.c +++ b/netio_posix.c @@ -156,7 +156,7 @@ int netio_accept(int sock) { #endif } -int netio_read(int conn, void *buf, size_t count) { +size_t netio_read(int conn, void *buf, size_t count) { int r; struct aiocb ctl_block = { .aio_fildes = conn, @@ -179,7 +179,7 @@ int netio_read(int conn, void *buf, size_t count) { return r ? -abs(r) : aio_return(&ctl_block); } -int netio_write(int conn, void *buf, size_t count) { +size_t netio_write(int conn, void *buf, size_t count) { int r; struct aiocb ctl_block = { .aio_fildes = conn, -- cgit v1.2.3-2-g168b