Tarantool development patches archive
 help / color / mirror / Atom feed
From: Cyrill Gorcunov <gorcunov@gmail.com>
To: tml <tarantool-patches@dev.tarantool.org>
Cc: Alexander Turenko <alexander.turenko@tarantool.org>
Subject: [Tarantool-patches] [PATCH 19/22] session: use void for empty args
Date: Fri,  3 Jul 2020 17:45:23 +0300	[thread overview]
Message-ID: <20200703144526.522358-20-gorcunov@gmail.com> (raw)
In-Reply-To: <20200703144526.522358-1-gorcunov@gmail.com>

Part-of #4718

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 src/box/session.cc |  8 ++++----
 src/box/session.h  | 10 +++++-----
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/box/session.cc b/src/box/session.cc
index 7085cc393..7ba7235fe 100644
--- a/src/box/session.cc
+++ b/src/box/session.cc
@@ -72,7 +72,7 @@ RLIST_HEAD(session_on_disconnect);
 RLIST_HEAD(session_on_auth);
 
 static inline uint64_t
-sid_max()
+sid_max(void)
 {
 	static uint64_t sid_max = 0;
 	/* Return the next sid rolling over the reserved value of 0. */
@@ -160,7 +160,7 @@ session_create(enum session_type type)
 }
 
 struct session *
-session_create_on_demand()
+session_create_on_demand(void)
 {
 	assert(fiber_get_session(fiber()) == NULL);
 
@@ -278,7 +278,7 @@ extern "C" void
 session_settings_init(void);
 
 void
-session_init()
+session_init(void)
 {
 	session_registry = mh_i64ptr_new();
 	if (session_registry == NULL)
@@ -289,7 +289,7 @@ session_init()
 }
 
 void
-session_free()
+session_free(void)
 {
 	if (session_registry)
 		mh_i64ptr_delete(session_registry);
diff --git a/src/box/session.h b/src/box/session.h
index a15434f96..833a457bd 100644
--- a/src/box/session.h
+++ b/src/box/session.h
@@ -46,10 +46,10 @@ struct port;
 struct session_vtab;
 
 void
-session_init();
+session_init(void);
 
 void
-session_free();
+session_free(void);
 
 enum session_type {
 	SESSION_TYPE_BACKGROUND = 0,
@@ -221,7 +221,7 @@ extern struct credentials admin_credentials;
  * trigger to destroy it when this fiber ends.
  */
 struct session *
-session_create_on_demand();
+session_create_on_demand(void);
 
 /*
  * When creating a new fiber, the database (box)
@@ -234,7 +234,7 @@ session_create_on_demand();
  * and create it otherwise.
  */
 static inline struct session *
-current_session()
+current_session(void)
 {
 	struct session *session = fiber_get_session(fiber());
 	if (session == NULL) {
@@ -252,7 +252,7 @@ current_session()
  * user on demand as in current_session() applies.
  */
 static inline struct credentials *
-effective_user()
+effective_user(void)
 {
 	struct fiber *f = fiber();
 	struct credentials *u = f->storage.credentials;
-- 
2.26.2

  parent reply	other threads:[~2020-07-03 14:49 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-03 14:45 [Tarantool-patches] [PATCH 00/22] Use void type in empty arguments list Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 01/22] version: use void for empty args Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 02/22] crc32: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 03/22] title: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 04/22] proc_title: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 05/22] systemd: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 06/22] main: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 07/22] say: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 08/22] memory: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 09/22] fiber: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 10/22] diag: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 11/22] coio: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 12/22] cbus: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 13/22] backtrace: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 14/22] call: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 15/22] call_id_cache: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 16/22] schema: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 17/22] sql: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 18/22] user: " Cyrill Gorcunov
2020-07-03 14:45 ` Cyrill Gorcunov [this message]
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 20/22] iproto: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 21/22] wal: " Cyrill Gorcunov
2020-07-03 14:45 ` [Tarantool-patches] [PATCH 22/22] box: " Cyrill Gorcunov
2020-07-03 21:23 ` [Tarantool-patches] [PATCH 00/22] Use void type in empty arguments list Vladislav Shpilevoy
2020-07-04  7:30   ` Cyrill Gorcunov
2020-07-05 21:19     ` Timur Safin
2020-07-05 21:37       ` Cyrill Gorcunov
2020-07-06 13:33         ` Timur Safin
2020-07-06 15:09           ` Cyrill Gorcunov
2020-07-08 12:55 ` Kirill Yukhin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200703144526.522358-20-gorcunov@gmail.com \
    --to=gorcunov@gmail.com \
    --cc=alexander.turenko@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH 19/22] session: use void for empty args' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox