From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) (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 94C1842EF67 for ; Fri, 3 Jul 2020 17:47:48 +0300 (MSK) Received: by mail-lj1-f194.google.com with SMTP id t25so32698635lji.12 for ; Fri, 03 Jul 2020 07:47:48 -0700 (PDT) From: Cyrill Gorcunov Date: Fri, 3 Jul 2020 17:45:16 +0300 Message-Id: <20200703144526.522358-13-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 12/22] cbus: 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 And drop duplicate declaration of cbus_init. Part-of #4718 Signed-off-by: Cyrill Gorcunov --- src/lib/core/cbus.c | 4 ++-- src/lib/core/cbus.h | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/lib/core/cbus.c b/src/lib/core/cbus.c index 28164f666..5d91fb948 100644 --- a/src/lib/core/cbus.c +++ b/src/lib/core/cbus.c @@ -322,13 +322,13 @@ cpipe_flush_cb(ev_loop *loop, struct ev_async *watcher, int events) } void -cbus_init() +cbus_init(void) { cbus_create(&cbus); } void -cbus_free() +cbus_free(void) { cbus_destroy(&cbus); } diff --git a/src/lib/core/cbus.h b/src/lib/core/cbus.h index f0101cb8b..16ddc571d 100644 --- a/src/lib/core/cbus.h +++ b/src/lib/core/cbus.h @@ -244,9 +244,6 @@ cpipe_push(struct cpipe *pipe, struct cmsg *msg) ev_feed_event(pipe->producer, &pipe->flush_input, EV_CUSTOM); } -void -cbus_init(); - /** * cbus endpoint */ @@ -285,11 +282,11 @@ cbus_endpoint_fetch(struct cbus_endpoint *endpoint, struct stailq *output) /** Initialize the global singleton bus. */ void -cbus_init(); +cbus_init(void); /** Destroy the global singleton bus. */ void -cbus_free(); +cbus_free(void); /** * Connect the cord to cbus as a named reciever. -- 2.26.2