[Tarantool-patches] [PATCH 03/22] title: use void for empty args

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


Part-of #4718

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

diff --git a/src/title.c b/src/title.c
index e07ced779..686557c0b 100644
--- a/src/title.c
+++ b/src/title.c
@@ -72,7 +72,7 @@ void title_free(int argc, char **argv)
 	proc_title_free(argc, argv);
 }
 
-const char *title_get()
+const char *title_get(void)
 {
 	return title_buf;
 }
@@ -99,7 +99,7 @@ my_basename(const char *name)
 	return name;
 }
 
-void title_update()
+void title_update(void)
 {
 	if (title_buf == NULL || title_buf_size == 0)
 		return;
diff --git a/src/title.h b/src/title.h
index 8754d8a55..0c8f05542 100644
--- a/src/title.h
+++ b/src/title.h
@@ -76,10 +76,10 @@ char **title_init(int argc, char **argv);
 void title_free(int argc, char **argv);
 
 /** generate and update process title */
-void title_update();
+void title_update(void);
 
 /** query current title */
-const char *title_get();
+const char *title_get(void);
 
 /* parts: invoke title_update() to propagate changes */
 
-- 
2.26.2



More information about the Tarantool-patches mailing list