From 4da7a3e44d2bbd7b21ae05c7b6604748e7227227 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Thu, 8 Dec 2022 16:31:24 +0100 Subject: wip2 --- src/net/ps1/src/net.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/net/ps1') diff --git a/src/net/ps1/src/net.c b/src/net/ps1/src/net.c index af964cf..185d990 100644 --- a/src/net/ps1/src/net.c +++ b/src/net/ps1/src/net.c @@ -7,6 +7,7 @@ #include #include #include +#include static struct net_host { @@ -82,7 +83,7 @@ static int on_write(const void *const buf, size_t n, void *const arg) EnterCriticalSection(); - for (const char *b = buf; n; n--, b++) + for (const uint8_t *b = buf; n; n--, b++) { struct net_host_fifo *const f = &h->out; size_t new = f->pending + 1; @@ -115,7 +116,7 @@ static int on_read(void *const buf, const size_t n, void *const arg) EnterCriticalSection(); - for (char *b = buf; rem; rem--, b++) + for (uint8_t *b = buf; rem; rem--, b++) { if (f->read == f->pending) goto end; -- cgit v1.2.3