[Tarantool-patches] [PATCH 05/22] systemd: use void for empty args
Cyrill Gorcunov
gorcunov at gmail.com
Fri Jul 3 17:45:09 MSK 2020
Part-of #4718
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
src/systemd.c | 4 ++--
src/systemd.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/systemd.c b/src/systemd.c
index c80259f06..2463a9dc9 100644
--- a/src/systemd.c
+++ b/src/systemd.c
@@ -50,7 +50,7 @@
static int systemd_fd = -1;
static const char *sd_unix_path = NULL;
-int systemd_init() {
+int systemd_init(void) {
sd_unix_path = getenv("NOTIFY_SOCKET");
if (sd_unix_path == NULL) {
/* Do nothing if the path is not set. */
@@ -104,7 +104,7 @@ int systemd_init() {
return -1;
}
-void systemd_free() {
+void systemd_free(void) {
if (systemd_fd > 0)
close(systemd_fd);
}
diff --git a/src/systemd.h b/src/systemd.h
index 861a9af35..7319096d6 100644
--- a/src/systemd.h
+++ b/src/systemd.h
@@ -49,13 +49,13 @@ extern "C" {
* \return 0 on sucess
*/
int
-systemd_init();
+systemd_init(void);
/**
* Close connection with systemd daemon
*/
void
-systemd_free();
+systemd_free(void);
/**
* Send message to systemd
--
2.26.2
More information about the Tarantool-patches
mailing list