From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) (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 7833F422D2B for ; Fri, 3 Jul 2020 17:49:32 +0300 (MSK) Received: by mail-lf1-f67.google.com with SMTP id s16so13182802lfp.12 for ; Fri, 03 Jul 2020 07:49:32 -0700 (PDT) From: Cyrill Gorcunov Date: Fri, 3 Jul 2020 17:45:25 +0300 Message-Id: <20200703144526.522358-22-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 21/22] wal: 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/wal.c | 8 ++++---- src/box/wal.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/box/wal.c b/src/box/wal.c index 74cc74684..27f9b942d 100644 --- a/src/box/wal.c +++ b/src/box/wal.c @@ -196,7 +196,7 @@ static struct vy_log_writer vy_log_writer; static struct wal_writer wal_writer_singleton; enum wal_mode -wal_mode() +wal_mode(void) { return wal_writer_singleton.wal_mode; } @@ -1296,7 +1296,7 @@ wal_write_none(struct journal *journal, struct journal_entry *entry) } void -wal_init_vy_log() +wal_init_vy_log(void) { xlog_clear(&vy_log_writer.xlog); } @@ -1351,7 +1351,7 @@ wal_rotate_vy_log_f(struct cbus_call_msg *msg) } void -wal_rotate_vy_log() +wal_rotate_vy_log(void) { struct wal_writer *writer = &wal_writer_singleton; struct cbus_call_msg msg; @@ -1491,7 +1491,7 @@ wal_notify_watchers(struct wal_writer *writer, unsigned events) * a second EOF marker to an open file. */ void -wal_atfork() +wal_atfork(void) { if (xlog_is_open(&wal_writer_singleton.current_wal)) xlog_atfork(&wal_writer_singleton.current_wal); diff --git a/src/box/wal.h b/src/box/wal.h index 11a66a20a..f348dc636 100644 --- a/src/box/wal.h +++ b/src/box/wal.h @@ -174,10 +174,10 @@ wal_clear_watcher(struct wal_watcher *watcher, void (*process_cb)(struct cbus_endpoint *)); void -wal_atfork(); +wal_atfork(void); enum wal_mode -wal_mode(); +wal_mode(void); /** * Wait until all submitted writes are successfully flushed @@ -238,7 +238,7 @@ void wal_collect_garbage(const struct vclock *vclock); void -wal_init_vy_log(); +wal_init_vy_log(void); /** * Write xrows to the vinyl metadata log. @@ -250,7 +250,7 @@ wal_write_vy_log(struct journal_entry *req); * Rotate the vinyl metadata log. */ void -wal_rotate_vy_log(); +wal_rotate_vy_log(void); #if defined(__cplusplus) } /* extern "C" */ -- 2.26.2