[Tarantool-patches] [PATCH 15/22] call_id_cache: use void for empty args

Cyrill Gorcunov gorcunov at gmail.com
Fri Jul 3 17:45:19 MSK 2020


Part-of #4718

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 src/box/coll_id_cache.c | 4 ++--
 src/box/coll_id_cache.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/box/coll_id_cache.c b/src/box/coll_id_cache.c
index 45d295eb9..22673efd0 100644
--- a/src/box/coll_id_cache.c
+++ b/src/box/coll_id_cache.c
@@ -39,7 +39,7 @@ static struct mh_strnptr_t *coll_cache_name = NULL;
 static struct mh_i32ptr_t *coll_id_cache = NULL;
 
 int
-coll_id_cache_init()
+coll_id_cache_init(void)
 {
 	coll_id_cache = mh_i32ptr_new();
 	if (coll_id_cache == NULL) {
@@ -58,7 +58,7 @@ coll_id_cache_init()
 }
 
 void
-coll_id_cache_destroy()
+coll_id_cache_destroy(void)
 {
 	mh_strnptr_delete(coll_cache_name);
 	mh_i32ptr_delete(coll_id_cache);
diff --git a/src/box/coll_id_cache.h b/src/box/coll_id_cache.h
index e3115ddb5..b959b2eb3 100644
--- a/src/box/coll_id_cache.h
+++ b/src/box/coll_id_cache.h
@@ -43,11 +43,11 @@ struct coll_id;
  * @return - 0 on success, -1 on memory error.
  */
 int
-coll_id_cache_init();
+coll_id_cache_init(void);
 
 /** Delete global hash tables. */
 void
-coll_id_cache_destroy();
+coll_id_cache_destroy(void);
 
 /**
  * Insert or replace a collation into collation cache.
-- 
2.26.2



More information about the Tarantool-patches mailing list