From 0926a4ccd80f26b6f036f67fc796b2f4f907cf58 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 30 Jun 2024 05:29:07 +0200 Subject: [PATCH] Proper return --- ringbuf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ringbuf.c b/ringbuf.c index bfab771..b5ca393 100644 --- a/ringbuf.c +++ b/ringbuf.c @@ -45,6 +45,7 @@ rb_push_back(struct RingBuf *rb, const void *item, MEMCPY_T memcpy_fn) rb->write_head = rb->buffer; rb->count++; + return WriteOk; } enum ReadResult @@ -61,4 +62,5 @@ rb_pop_front(struct RingBuf *rb, void *item) rb->read_head = rb->buffer; rb->count--; + return ReadOk; }