summaryrefslogtreecommitdiff
path: root/src/shared/container/ring.h
diff options
context:
space:
mode:
authordzwdz2022-05-15 15:00:35 +0200
committerdzwdz2022-05-15 15:00:35 +0200
commit27d8fa24b875f2bbcc73dad0795519ef2f5e9cd7 (patch)
tree33774779c4b43c446808ca2052a63ac30aef10bc /src/shared/container/ring.h
parentb35813737665afbbab0c226a2e6b1cb7406d4d40 (diff)
shared/ring: use char* for the buffer
i don't think uint8_t can alias. char can
Diffstat (limited to 'src/shared/container/ring.h')
-rw-r--r--src/shared/container/ring.h2
1 files changed, 1 insertions, 1 deletions
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 <stdint.h>
typedef struct {
- void *buf;
+ char *buf;
size_t capacity;
size_t _head, _tail;
} ring_t;