summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-03-17 03:02:40 +0100
committerMitya Selivanov <automainint@guattari.tech>2023-03-17 03:02:40 +0100
commite80cc7f51164bc8efe3a8c445815f52ff7842618 (patch)
treeb69925b5ddeb7ee9cdb5321445bcd4445765f6bc /source
parent670461a51e44eb743586213581e23f730efe80cd (diff)
downloadkit-e80cc7f51164bc8efe3a8c445815f52ff7842618.zip
void for no arguments
Diffstat (limited to 'source')
-rw-r--r--source/kit/allocator.c2
-rw-r--r--source/kit/allocator.h2
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
}