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 6BA05422D2A for ; Fri, 3 Jul 2020 17:49:20 +0300 (MSK) Received: by mail-lj1-f195.google.com with SMTP id q4so1581650lji.2 for ; Fri, 03 Jul 2020 07:49:20 -0700 (PDT) From: Cyrill Gorcunov Date: Fri, 3 Jul 2020 17:45:24 +0300 Message-Id: <20200703144526.522358-21-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 20/22] iproto: 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/iproto.cc | 12 ++++++------ src/box/iproto.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/box/iproto.cc b/src/box/iproto.cc index 51fe7d93b..b8f65e5ec 100644 --- a/src/box/iproto.cc +++ b/src/box/iproto.cc @@ -243,7 +243,7 @@ iproto_msg_new(struct iproto_connection *con); * Resume stopped connections, if any. */ static void -iproto_resume(); +iproto_resume(void); static void iproto_msg_decode(struct iproto_msg *msg, const char **pos, const char *reqend, @@ -544,7 +544,7 @@ static RLIST_HEAD(stopped_connections); * in the message pool. */ static inline bool -iproto_check_msg_max() +iproto_check_msg_max(void) { size_t request_count = mempool_count(&iproto_msg_pool); return request_count > (size_t) iproto_msg_max; @@ -932,7 +932,7 @@ iproto_connection_resume(struct iproto_connection *con) * necessary to use up the limit. */ static void -iproto_resume() +iproto_resume(void) { while (!iproto_check_msg_max() && !rlist_empty(&stopped_connections)) { /* @@ -1516,7 +1516,7 @@ tx_reply_iproto_error(struct cmsg *m) /** Inject a short delay on tx request processing for testing. */ static inline void -tx_inject_delay() +tx_inject_delay(void) { ERROR_INJECT(ERRINJ_IPROTO_TX_DELAY, { if (rand() % 100 < 10) @@ -2185,7 +2185,7 @@ iproto_session_push(struct session *session, struct port *port) /** Initialize the iproto subsystem and start network io thread */ void -iproto_init() +iproto_init(void) { slab_cache_create(&net_slabc, &runtime); @@ -2334,7 +2334,7 @@ iproto_set_msg_max(int new_iproto_msg_max) } void -iproto_free() +iproto_free(void) { tt_pthread_cancel(net_cord.id); tt_pthread_join(net_cord.id, NULL); diff --git a/src/box/iproto.h b/src/box/iproto.h index 1442e68d3..392e4f08e 100644 --- a/src/box/iproto.h +++ b/src/box/iproto.h @@ -91,7 +91,7 @@ iproto_bound_address(void); } /* extern "C" */ void -iproto_init(); +iproto_init(void); void iproto_listen(const char *uri); @@ -100,7 +100,7 @@ void iproto_set_msg_max(int iproto_msg_max); void -iproto_free(); +iproto_free(void); #endif /* defined(__cplusplus) */ -- 2.26.2