From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 12342422D2D for ; Fri, 3 Jul 2020 17:49:44 +0300 (MSK) Received: by mail-lj1-f171.google.com with SMTP id q4so1583157lji.2 for ; Fri, 03 Jul 2020 07:49:44 -0700 (PDT) From: Cyrill Gorcunov Date: Fri, 3 Jul 2020 17:45:26 +0300 Message-Id: <20200703144526.522358-23-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 22/22] box: 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 Fixes #4718 Signed-off-by: Cyrill Gorcunov --- src/box/box.cc | 12 ++++++------ src/box/box.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/box/box.cc b/src/box/box.cc index 871b0d976..757dd93f1 100644 --- a/src/box/box.cc +++ b/src/box/box.cc @@ -230,7 +230,7 @@ static bool box_check_ro(void); void -box_set_ro() +box_set_ro(void) { bool ro = box_check_ro(); if (ro == is_ro) @@ -369,7 +369,7 @@ wal_stream_create(struct wal_stream *ctx) /* {{{ configuration bindings */ static void -box_check_say() +box_check_say(void) { enum say_logger_type type = SAY_LOGGER_STDERR; /* default */ const char *log = cfg_gets("log"); @@ -503,7 +503,7 @@ box_check_uuid(struct tt_uuid *uuid, const char *name) } static bool -box_check_ro() +box_check_ro(void) { bool ro = cfg_geti("read_only") != 0; bool anon = cfg_geti("replication_anon") != 0; @@ -646,7 +646,7 @@ box_check_sql_cache_size(int size) } void -box_check_config() +box_check_config(void) { struct tt_uuid uuid; box_check_say(); @@ -2513,13 +2513,13 @@ box_cfg(void) * server forks in box.cfg{} if background=true. */ void -box_atfork() +box_atfork(void) { wal_atfork(); } int -box_checkpoint() +box_checkpoint(void) { /* Signal arrived before box.cfg{} */ if (! is_box_configured) diff --git a/src/box/box.h b/src/box/box.h index 557542a83..6baac1021 100644 --- a/src/box/box.h +++ b/src/box/box.h @@ -100,7 +100,7 @@ void box_atfork(void); void -box_set_ro(); +box_set_ro(void); bool box_is_ro(void); @@ -220,7 +220,7 @@ box_process_vote(struct ballot *ballot); * in case of a configuration change. */ void -box_check_config(); +box_check_config(void); void box_listen(void); void box_set_replication(void); -- 2.26.2