From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id AC56442EF63 for ; Fri, 3 Jul 2020 17:48:57 +0300 (MSK) Received: by mail-lj1-f195.google.com with SMTP id s9so37246585ljm.11 for ; Fri, 03 Jul 2020 07:48:57 -0700 (PDT) From: Cyrill Gorcunov Date: Fri, 3 Jul 2020 17:45:22 +0300 Message-Id: <20200703144526.522358-19-gorcunov@gmail.com> In-Reply-To: <20200703144526.522358-1-gorcunov@gmail.com> References: <20200703144526.522358-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 18/22] user: use void for empty args List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml Cc: Alexander Turenko Part-of #4718 Signed-off-by: Cyrill Gorcunov --- 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