diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-03-17 03:06:43 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-03-17 03:06:43 +0100 |
commit | 1a3c3099c719cd4e71b6bf960f56e62a05b82ff9 (patch) | |
tree | 7af43d52af731fd260ce788b50f180399b41a6a0 /source | |
parent | ed0aa99d03e2b84b07397da04a3c5dab954c6632 (diff) | |
download | kit-1a3c3099c719cd4e71b6bf960f56e62a05b82ff9.zip |
void for no arguments
Diffstat (limited to 'source')
-rw-r--r-- | source/kit/secure_random.c | 4 |
1 files 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 <unistd.h> #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 |