Mercurial > hg > th-libs
diff th_datastruct.h @ 626:98c8bd80f633
Fix ringbuf size and n types.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 17 Jan 2020 19:13:57 +0200 |
parents | 935ee9a9f631 |
children | 964657ad0960 |
line wrap: on
line diff
--- a/th_datastruct.h Fri Jan 17 04:20:16 2020 +0200 +++ b/th_datastruct.h Fri Jan 17 19:13:57 2020 +0200 @@ -54,8 +54,8 @@ typedef struct { char **data; - int n, size; - void (*deallocator)(void *); + size_t n, size; + void (*deallocator)(void *data); } th_ringbuf_t; th_ringbuf_t * th_ringbuf_new(const size_t size, void (*mdeallocator)(void *));