diff options
Diffstat (limited to 'test/test_vec.c')
| -rw-r--r-- | test/test_vec.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_vec.c b/test/test_vec.c index a9788eb..9343e03 100644 --- a/test/test_vec.c +++ b/test/test_vec.c @@ -1,19 +1,18 @@ #include <assert.h> -#include <stdio.h> #include <stdlib.h> #include "util/alloc.h" #include "util/vec.h" int main(int argc, char **argv) { - struct LEO_Allocator allocator = { + LEO_Allocator allocator = { malloc, realloc, free, NULL }; - struct LEO_Vec vec; + LEO_Vec vec; assert(LEO_Vec_init(&vec, sizeof(int), allocator) == LEO_Vec_OK); for (int i = 0; i < 100; i++) { |
