[Tarantool-patches] [PATCH 06/22] main: use void for empty args

Cyrill Gorcunov gorcunov at gmail.com
Fri Jul 3 17:45:10 MSK 2020


Part-of #4718

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 src/main.cc | 8 ++++----
 src/main.h  | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main.cc b/src/main.cc
index 2c963912f..b3e7e4160 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -311,7 +311,7 @@ signal_free(void)
 
 /** Make sure the child has a default signal disposition. */
 static void
-signal_reset()
+signal_reset(void)
 {
 	for (int i = 0; i < ev_sig_count; i++)
 		ev_signal_stop(loop(), &ev_sigs[i]);
@@ -340,7 +340,7 @@ signal_reset()
 }
 
 static void
-tarantool_atfork()
+tarantool_atfork(void)
 {
 	signal_reset();
 	box_atfork();
@@ -387,7 +387,7 @@ signal_init(void)
 
 /** Run in the background. */
 static void
-daemonize()
+daemonize(void)
 {
 	pid_t pid;
 	int fd;
@@ -439,7 +439,7 @@ daemonize()
 }
 
 extern "C" void
-load_cfg()
+load_cfg(void)
 {
 	const char *work_dir = cfg_gets("work_dir");
 	if (work_dir != NULL && chdir(work_dir) == -1)
diff --git a/src/main.h b/src/main.h
index f509e905b..d06e43d89 100644
--- a/src/main.h
+++ b/src/main.h
@@ -43,7 +43,7 @@ void
 tarantool_exit(int);
 
 void
-load_cfg();
+load_cfg(void);
 
 #if defined(__cplusplus)
 } /* extern "C" */
-- 
2.26.2



More information about the Tarantool-patches mailing list