From 27d8fa24b875f2bbcc73dad0795519ef2f5e9cd7 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 15 May 2022 15:00:35 +0200 Subject: shared/ring: use char* for the buffer i don't think uint8_t can alias. char can --- src/shared/container/ring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/container/ring.h') diff --git a/src/shared/container/ring.h b/src/shared/container/ring.h index 434f6aa..219f4fb 100644 --- a/src/shared/container/ring.h +++ b/src/shared/container/ring.h @@ -3,7 +3,7 @@ #include typedef struct { - void *buf; + char *buf; size_t capacity; size_t _head, _tail; } ring_t; -- cgit v1.2.3