[Tarantool-patches] [PATCH 07/22] say: use void for empty args

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


Part-of #4718

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 src/lib/core/say.c | 4 ++--
 src/lib/core/say.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/lib/core/say.c b/src/lib/core/say.c
index b903cb03f..c75e65b58 100644
--- a/src/lib/core/say.c
+++ b/src/lib/core/say.c
@@ -163,7 +163,7 @@ level_to_syslog_priority(int level)
 }
 
 enum say_logger_type
-log_type()
+log_type(void)
 {
 	return log_default->type;
 }
@@ -744,7 +744,7 @@ say_logger_init(const char *init_str, int level, int nonblock,
 }
 
 void
-say_logger_free()
+say_logger_free(void)
 {
 	if (say_logger_initialized())
 		log_destroy(&log_std);
diff --git a/src/lib/core/say.h b/src/lib/core/say.h
index 857145465..fe8251e4c 100644
--- a/src/lib/core/say.h
+++ b/src/lib/core/say.h
@@ -201,7 +201,7 @@ log_say(struct log *log, int level, const char *filename,
  * @retval say_logger_type.
  */
 enum say_logger_type
-log_type();
+log_type(void);
 
 /**
  * Accessors for default logger file descriptor.
@@ -280,7 +280,7 @@ say_logger_initialized(void);
 
 /** Free default logger */
 void
-say_logger_free();
+say_logger_free(void);
 
 /** \cond public */
 typedef void (*sayfunc_t)(int, const char *, int, const char *,
-- 
2.26.2



More information about the Tarantool-patches mailing list