diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-03-17 03:02:40 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-03-17 03:02:40 +0100 |
commit | e80cc7f51164bc8efe3a8c445815f52ff7842618 (patch) | |
tree | b69925b5ddeb7ee9cdb5321445bcd4445765f6bc | |
parent | 670461a51e44eb743586213581e23f730efe80cd (diff) | |
download | kit-e80cc7f51164bc8efe3a8c445815f52ff7842618.zip |
void for no arguments
-rw-r--r-- | source/kit/allocator.c | 2 | ||||
-rw-r--r-- | source/kit/allocator.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/kit/allocator.c b/source/kit/allocator.c index 1227002..4a31d2f 100644 --- a/source/kit/allocator.c +++ b/source/kit/allocator.c @@ -18,7 +18,7 @@ static void deallocate(void *_, void *pointer) { #endif } -kit_allocator_t kit_alloc_default() { +kit_allocator_t kit_alloc_default(void) { kit_allocator_t alloc = { .state = NULL, .allocate = allocate, .deallocate = deallocate }; diff --git a/source/kit/allocator.h b/source/kit/allocator.h index 4b91444..73eaa38 100644 --- a/source/kit/allocator.h +++ b/source/kit/allocator.h @@ -16,7 +16,7 @@ typedef struct { kit_deallocate_fn deallocate; } kit_allocator_t; -kit_allocator_t kit_alloc_default(); +kit_allocator_t kit_alloc_default(void); #ifdef __cplusplus } |