diff --git a/exec/objdb.c b/exec/objdb.c index 0c037105..7c4af4d2 100644 --- a/exec/objdb.c +++ b/exec/objdb.c @@ -113,7 +113,7 @@ static struct hdb_handle_database object_find_instance_database = { }; -static void objdb_wrlock() +static void objdb_wrlock(void) { pthread_mutex_lock(&meta_lock); pthread_rwlock_wrlock(&reload_lock); @@ -121,7 +121,7 @@ static void objdb_wrlock() pthread_mutex_unlock(&meta_lock); } -static void objdb_rdlock() +static void objdb_rdlock(void) { pthread_mutex_lock(&meta_lock); if (lock_thread != pthread_self()) @@ -129,7 +129,7 @@ static void objdb_rdlock() pthread_mutex_unlock(&meta_lock); } -static void objdb_rdunlock() +static void objdb_rdunlock(void) { pthread_mutex_lock(&meta_lock); if (lock_thread != pthread_self()) @@ -137,7 +137,7 @@ static void objdb_rdunlock() pthread_mutex_unlock(&meta_lock); } -static void objdb_wrunlock() +static void objdb_wrunlock(void) { pthread_mutex_lock(&meta_lock); pthread_rwlock_unlock(&reload_lock); diff --git a/services/cfg.c b/services/cfg.c index 90e6685d..27e3842d 100644 --- a/services/cfg.c +++ b/services/cfg.c @@ -368,7 +368,7 @@ static void cfg_confchg_fn ( /* * Tell other nodes we are shutting down */ -static int send_shutdown() +static int send_shutdown(void) { struct req_exec_cfg_shutdown req_exec_cfg_shutdown; struct iovec iovec; @@ -417,7 +417,7 @@ static void send_test_shutdown(void *only_conn, void *exclude_conn, int status) LEAVE(); } -static void check_shutdown_status() +static void check_shutdown_status(void) { ENTER(); diff --git a/services/votequorum.c b/services/votequorum.c index 27a6d1fe..0913f428 100644 --- a/services/votequorum.c +++ b/services/votequorum.c @@ -637,7 +637,7 @@ static int send_quorum_notification(void *conn, uint64_t context) return 0; } -static void send_expectedvotes_notification() +static void send_expectedvotes_notification(void) { struct res_lib_votequorum_expectedvotes_notification res_lib_votequorum_expectedvotes_notification; struct quorum_pd *qpd; diff --git a/tools/corosync-cfgtool.c b/tools/corosync-cfgtool.c index d1b79bdb..783f05e9 100644 --- a/tools/corosync-cfgtool.c +++ b/tools/corosync-cfgtool.c @@ -149,7 +149,7 @@ void service_unload_do (char *service, unsigned int version) (void)corosync_cfg_finalize (handle); } -void shutdown_do() +void shutdown_do(void) { cs_error_t result; corosync_cfg_handle_t handle;