From a81dccf7ad8345a1c44dc7a08e2320bd88e1aaa5 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 4 Sep 2014 13:31:15 +1000 Subject: ctdb-daemon: Move some inline declarations to header file To avoid warnings when using --enable-developer, which uses -Wmissing-prototypes. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/include/ctdb_private.h | 2 ++ ctdb/server/ctdb_daemon.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index ef9bd89ad0..17c302c1cd 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -1076,6 +1076,8 @@ void ctdb_disable_monitoring(struct ctdb_context *ctdb); void ctdb_enable_monitoring(struct ctdb_context *ctdb); void ctdb_stop_monitoring(struct ctdb_context *ctdb); void ctdb_wait_for_first_recovery(struct ctdb_context *ctdb); +int ctdb_tcp_init(struct ctdb_context *ctdb); +int ctdb_ibw_init(struct ctdb_context *ctdb); void ctdb_start_tcp_tickle_update(struct ctdb_context *ctdb); void ctdb_send_keepalive(struct ctdb_context *ctdb, uint32_t destnode); void ctdb_start_keepalive(struct ctdb_context *ctdb); diff --git a/ctdb/server/ctdb_daemon.c b/ctdb/server/ctdb_daemon.c index a9a0b8d3ef..bf8b82dd70 100644 --- a/ctdb/server/ctdb_daemon.c +++ b/ctdb/server/ctdb_daemon.c @@ -1230,12 +1230,10 @@ int ctdb_start_daemon(struct ctdb_context *ctdb, bool do_fork, bool use_syslog) ctdb_run_notification_script(ctdb, "init"); if (strcmp(ctdb->transport, "tcp") == 0) { - int ctdb_tcp_init(struct ctdb_context *); ret = ctdb_tcp_init(ctdb); } #ifdef USE_INFINIBAND if (strcmp(ctdb->transport, "ib") == 0) { - int ctdb_ibw_init(struct ctdb_context *); ret = ctdb_ibw_init(ctdb); } #endif -- cgit