[Tarantool-patches] [PATCH 04/22] proc_title: use void for empty args

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


Part-of #4718

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

diff --git a/src/proc_title.c b/src/proc_title.c
index e31f0e562..39587aeb6 100644
--- a/src/proc_title.c
+++ b/src/proc_title.c
@@ -370,7 +370,7 @@ proc_title_set(const char *format, ...)
 }
 
 size_t
-proc_title_max_length()
+proc_title_max_length(void)
 {
 	return ps_buffer_size - ps_sentinel_size;
 }
diff --git a/src/proc_title.h b/src/proc_title.h
index 10dc0b740..23849d95d 100644
--- a/src/proc_title.h
+++ b/src/proc_title.h
@@ -39,7 +39,7 @@ extern "C" {
 char **proc_title_init(int argc, char **argv);
 void proc_title_free(int argc, char **argv);
 CFORMAT(printf, 1, 2) void proc_title_set(const char *format, ...);
-size_t proc_title_max_length();
+size_t proc_title_max_length(void);
 
 #ifdef __cplusplus
 } /* extern "C" */
-- 
2.26.2



More information about the Tarantool-patches mailing list