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 3658A42EF6D for ; Fri, 3 Jul 2020 17:48:46 +0300 (MSK) Received: by mail-lj1-f195.google.com with SMTP id b25so33709945ljp.6 for ; Fri, 03 Jul 2020 07:48:46 -0700 (PDT) From: Cyrill Gorcunov Date: Fri, 3 Jul 2020 17:45:21 +0300 Message-Id: <20200703144526.522358-18-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 17/22] sql: 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/sql.c | 6 +++--- src/box/sql.h | 6 +++--- src/box/sql/build.c | 2 +- src/box/sql_stmt_cache.c | 4 ++-- src/box/sql_stmt_cache.h | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/box/sql.c b/src/box/sql.c index 555fcfd1f..000246ee9 100644 --- a/src/box/sql.c +++ b/src/box/sql.c @@ -64,7 +64,7 @@ static const uint32_t default_sql_flags = SQL_EnableTrigger | SQL_RecTriggers; void -sql_init() +sql_init(void) { default_flags |= default_sql_flags; @@ -79,7 +79,7 @@ sql_init() } void -sql_load_schema() +sql_load_schema(void) { assert(db->init.busy == 0); struct space *stat = space_by_name("_sql_stat1"); @@ -97,7 +97,7 @@ sql_load_schema() } sql * -sql_get() +sql_get(void) { return db; } diff --git a/src/box/sql.h b/src/box/sql.h index 0fa52fc0b..f56f7a1f1 100644 --- a/src/box/sql.h +++ b/src/box/sql.h @@ -39,7 +39,7 @@ extern "C" { #endif void -sql_init(); +sql_init(void); /** * Initialize SQL statistic system. @@ -47,7 +47,7 @@ sql_init(); * Currently unused. */ void -sql_load_schema(); +sql_load_schema(void); /** * struct sql * @@ -62,7 +62,7 @@ sql_load_schema(); * @retval SQL handle. */ struct sql * -sql_get(); +sql_get(void); struct Expr; struct Parse; diff --git a/src/box/sql/build.c b/src/box/sql/build.c index 714fbfbab..8f6b403b9 100644 --- a/src/box/sql/build.c +++ b/src/box/sql/build.c @@ -3496,7 +3496,7 @@ sql_session_setting_set(int id, const char *mp_value) } void -sql_session_settings_init() +sql_session_settings_init(void) { for (int i = 0, id = SESSION_SETTING_SQL_BEGIN; id < SESSION_SETTING_SQL_END; ++id, ++i) { diff --git a/src/box/sql_stmt_cache.c b/src/box/sql_stmt_cache.c index 5e2fb3def..66f7a7f8a 100644 --- a/src/box/sql_stmt_cache.c +++ b/src/box/sql_stmt_cache.c @@ -39,7 +39,7 @@ static struct sql_stmt_cache sql_stmt_cache; void -sql_stmt_cache_init() +sql_stmt_cache_init(void) { sql_stmt_cache.hash = mh_i32ptr_new(); if (sql_stmt_cache.hash == NULL) @@ -119,7 +119,7 @@ stmt_cache_find_entry(uint32_t stmt_id) } static void -sql_stmt_cache_gc() +sql_stmt_cache_gc(void) { struct stmt_cache_entry *entry, *next; rlist_foreach_entry_safe(entry, &sql_stmt_cache.gc_queue, link, next) diff --git a/src/box/sql_stmt_cache.h b/src/box/sql_stmt_cache.h index 468cbc9a0..aab6b56b3 100644 --- a/src/box/sql_stmt_cache.h +++ b/src/box/sql_stmt_cache.h @@ -89,7 +89,7 @@ struct sql_stmt_cache { * during database setup (in sql_init()). */ void -sql_stmt_cache_init(); +sql_stmt_cache_init(void); /** * Store statistics concerning cache (current size and number -- 2.26.2