[Tarantool-patches] [PATCH 08/22] memory: use void for empty args
Cyrill Gorcunov
gorcunov at gmail.com
Fri Jul 3 17:45:12 MSK 2020
Part-of #4718
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
src/lib/core/memory.c | 4 ++--
src/lib/core/memory.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/lib/core/memory.c b/src/lib/core/memory.c
index f236c1887..f92a733b6 100644
--- a/src/lib/core/memory.c
+++ b/src/lib/core/memory.c
@@ -34,7 +34,7 @@
struct slab_arena runtime;
void
-memory_init()
+memory_init(void)
{
static struct quota runtime_quota;
const size_t SLAB_SIZE = 4 * 1024 * 1024;
@@ -47,7 +47,7 @@ memory_init()
}
void
-memory_free()
+memory_free(void)
{
/*
* If this is called from a fiber != sched, then
diff --git a/src/lib/core/memory.h b/src/lib/core/memory.h
index dd9d351c7..b7a7d8e3f 100644
--- a/src/lib/core/memory.h
+++ b/src/lib/core/memory.h
@@ -46,10 +46,10 @@ extern "C" {
extern struct slab_arena runtime;
void
-memory_init();
+memory_init(void);
void
-memory_free();
+memory_free(void);
#if defined(__cplusplus)
} /* extern "C" */
#endif /* defined(__cplusplus) */
--
2.26.2
More information about the Tarantool-patches
mailing list