From 1a3c3099c719cd4e71b6bf960f56e62a05b82ff9 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Fri, 17 Mar 2023 03:06:43 +0100 Subject: void for no arguments --- source/kit/secure_random.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/kit/secure_random.c b/source/kit/secure_random.c index 5629daf..022741a 100644 --- a/source/kit/secure_random.c +++ b/source/kit/secure_random.c @@ -16,7 +16,7 @@ # include #endif -static uint64_t get_available_memory() { +static uint64_t get_available_memory(void) { #if defined(_WIN32) && !defined(__CYGWIN__) MEMORYSTATUSEX status; status.dwLength = sizeof(status); @@ -33,7 +33,7 @@ static uint64_t get_available_memory() { static once_flag kit_secure_random_fallback_flag; static mtx_t kit_secure_random_fallback_mutex; -static void secure_random_fallback_init() { +static void secure_random_fallback_init(void) { mtx_init(&kit_secure_random_fallback_mutex, mtx_plain); } #endif -- cgit v1.2.3