[Tarantool-patches] [PATCH 12/22] cbus: use void for empty args
Cyrill Gorcunov
gorcunov at gmail.com
Fri Jul 3 17:45:16 MSK 2020
And drop duplicate declaration of cbus_init.
Part-of #4718
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
src/lib/core/cbus.c | 4 ++--
src/lib/core/cbus.h | 7 ++-----
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/lib/core/cbus.c b/src/lib/core/cbus.c
index 28164f666..5d91fb948 100644
--- a/src/lib/core/cbus.c
+++ b/src/lib/core/cbus.c
@@ -322,13 +322,13 @@ cpipe_flush_cb(ev_loop *loop, struct ev_async *watcher, int events)
}
void
-cbus_init()
+cbus_init(void)
{
cbus_create(&cbus);
}
void
-cbus_free()
+cbus_free(void)
{
cbus_destroy(&cbus);
}
diff --git a/src/lib/core/cbus.h b/src/lib/core/cbus.h
index f0101cb8b..16ddc571d 100644
--- a/src/lib/core/cbus.h
+++ b/src/lib/core/cbus.h
@@ -244,9 +244,6 @@ cpipe_push(struct cpipe *pipe, struct cmsg *msg)
ev_feed_event(pipe->producer, &pipe->flush_input, EV_CUSTOM);
}
-void
-cbus_init();
-
/**
* cbus endpoint
*/
@@ -285,11 +282,11 @@ cbus_endpoint_fetch(struct cbus_endpoint *endpoint, struct stailq *output)
/** Initialize the global singleton bus. */
void
-cbus_init();
+cbus_init(void);
/** Destroy the global singleton bus. */
void
-cbus_free();
+cbus_free(void);
/**
* Connect the cord to cbus as a named reciever.
--
2.26.2
More information about the Tarantool-patches
mailing list