From df00df5a7a5bcd9076d4423128ea014ab3535626 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Sun, 11 Feb 2024 18:17:33 +0100 Subject: Update kit --- source/kit/shared_memory.posix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/kit/shared_memory.posix.c') diff --git a/source/kit/shared_memory.posix.c b/source/kit/shared_memory.posix.c index e109e2a..fa0db98 100644 --- a/source/kit/shared_memory.posix.c +++ b/source/kit/shared_memory.posix.c @@ -81,13 +81,13 @@ kit_shared_memory_t kit_shared_memory_open(kit_str_t name, i64 size, return mem; } -kit_status_t kit_shared_memory_close(kit_shared_memory_t *mem) { +s32 kit_shared_memory_close(kit_shared_memory_t *mem) { assert(mem != NULL); if (mem == NULL) return KIT_ERROR_INVALID_ARGUMENT; - kit_status_t status = KIT_OK; + s32 status = KIT_OK; if (munmap(mem->bytes, mem->size) != 0) status |= KIT_ERROR_UNMAP_FAILED; @@ -97,7 +97,7 @@ kit_status_t kit_shared_memory_close(kit_shared_memory_t *mem) { return status; } -kit_status_t kit_shared_memory_clean(kit_str_t name) { +s32 kit_shared_memory_clean(kit_str_t name) { assert(name.size > 0); assert(name.size + 1 <= NAME_MAX); assert(name.values != NULL); -- cgit v1.2.3