From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f193.google.com (mail-lj1-f193.google.com [209.85.208.193]) (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 8F89642EF63 for ; Fri, 3 Jul 2020 17:46:39 +0300 (MSK) Received: by mail-lj1-f193.google.com with SMTP id 9so37254190ljv.5 for ; Fri, 03 Jul 2020 07:46:39 -0700 (PDT) From: Cyrill Gorcunov Date: Fri, 3 Jul 2020 17:45:10 +0300 Message-Id: <20200703144526.522358-7-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 06/22] main: 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/main.cc | 8 ++++---- src/main.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.cc b/src/main.cc index 2c963912f..b3e7e4160 100644 --- a/src/main.cc +++ b/src/main.cc @@ -311,7 +311,7 @@ signal_free(void) /** Make sure the child has a default signal disposition. */ static void -signal_reset() +signal_reset(void) { for (int i = 0; i < ev_sig_count; i++) ev_signal_stop(loop(), &ev_sigs[i]); @@ -340,7 +340,7 @@ signal_reset() } static void -tarantool_atfork() +tarantool_atfork(void) { signal_reset(); box_atfork(); @@ -387,7 +387,7 @@ signal_init(void) /** Run in the background. */ static void -daemonize() +daemonize(void) { pid_t pid; int fd; @@ -439,7 +439,7 @@ daemonize() } extern "C" void -load_cfg() +load_cfg(void) { const char *work_dir = cfg_gets("work_dir"); if (work_dir != NULL && chdir(work_dir) == -1) diff --git a/src/main.h b/src/main.h index f509e905b..d06e43d89 100644 --- a/src/main.h +++ b/src/main.h @@ -43,7 +43,7 @@ void tarantool_exit(int); void -load_cfg(); +load_cfg(void); #if defined(__cplusplus) } /* extern "C" */ -- 2.26.2