From 3e83a50556d99180425f284533450c6ce203c1bc Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov <gorcunov@gmail.com> Date: Thu, 7 Jul 2022 00:01:05 +0300 Subject: [PATCH] box: declare local functions as static Some functions is src/main.cc are declared as global while they used in file scope only. Declare them as appropriate. NO_DOC=cleanup NO_CHANGELOG=cleanup NO_TEST=cleanup Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> --- src/main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cc b/src/main.cc index f93e08d555..6b5f5ede85 100644 --- a/src/main.cc +++ b/src/main.cc @@ -504,7 +504,7 @@ load_cfg(void) box_cfg(); } -void +static void free_rl_state(void) { /* tarantool_lua_free() was formerly reponsible for terminal reset, @@ -519,7 +519,7 @@ free_rl_state(void) } } -void +static void tarantool_atexit(void) { /* Same checks as in tarantool_free() */ @@ -532,7 +532,7 @@ tarantool_atexit(void) free_rl_state(); } -void +static void tarantool_free(void) { /* -- GitLab