[Tarantool-patches] [PATCH 18/22] user: use void for empty args

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


Part-of #4718

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

diff --git a/src/box/user.cc b/src/box/user.cc
index 198bf828b..5042fb16f 100644
--- a/src/box/user.cc
+++ b/src/box/user.cc
@@ -414,7 +414,7 @@ static int min_token_idx = 0;
  * is reached (and we're out of tokens).
  */
 uint8_t
-auth_token_get()
+auth_token_get(void)
 {
 	uint8_t bit_no = 0;
 	while (min_token_idx < USER_MAP_SIZE) {
@@ -542,7 +542,7 @@ user_find_by_name(const char *name, uint32_t len)
 }
 
 void
-user_cache_init()
+user_cache_init(void)
 {
 	/** Mark all tokens as unused. */
 	memset(tokens, 0xFF, sizeof(tokens));
@@ -606,7 +606,7 @@ user_cache_init()
 }
 
 void
-user_cache_free()
+user_cache_free(void)
 {
 	if (user_registry)
 		mh_i32ptr_delete(user_registry);
diff --git a/src/box/user.h b/src/box/user.h
index ccfc59346..9ed52c4c7 100644
--- a/src/box/user.h
+++ b/src/box/user.h
@@ -192,11 +192,11 @@ user_find_by_name_xc(const char *name, uint32_t len)
 
 /** Initialize the user cache and access control subsystem. */
 void
-user_cache_init();
+user_cache_init(void);
 
 /** Cleanup the user cache and access control subsystem */
 void
-user_cache_free();
+user_cache_free(void);
 
 /* {{{ Roles */
 
-- 
2.26.2



More information about the Tarantool-patches mailing list