diff --git a/src/test/test_buffer.c b/src/test/test_buffer.c index 05e5306..11c9041 100644 --- a/src/test/test_buffer.c +++ b/src/test/test_buffer.c @@ -2,7 +2,7 @@ #include "test_buffer.h" -rt_buffer_t *buffer_init() { +rt_buffer_t *buffer_init(void) { rt_buffer_t *buffer = calloc(1, sizeof(rt_buffer_t)); buffer->size = 1024; buffer->bytes = malloc(buffer->size); diff --git a/src/test/test_buffer.h b/src/test/test_buffer.h index 9ff5a5b..cdceac0 100644 --- a/src/test/test_buffer.h +++ b/src/test/test_buffer.h @@ -10,7 +10,7 @@ typedef struct rt_buffer_ctx_s { size_t pos; } rt_buffer_ctx_t; -rt_buffer_t *buffer_init(); +rt_buffer_t *buffer_init(void); void buffer_reset(rt_buffer_t *buffer); void buffer_grow(rt_buffer_t *buffer, size_t len); void buffer_free(rt_buffer_t *buffer);