From: Jim Meyering <[email protected]>
* exec/objdb.c (objdb_wrlock, objdb_rdlock, objdb_rdunlock):
(objdb_wrunlock):
* services/cfg.c (send_shutdown, check_shutdown_status):
* services/votequorum.c (send_expectedvotes_notification):
* tools/corosync-cfgtool.c (shutdown_do):
---
exec/objdb.c | 8 ++++----
services/cfg.c | 4 ++--
services/votequorum.c | 2 +-
tools/corosync-cfgtool.c | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/exec/objdb.c b/exec/objdb.c
index 0c03710..7c4af4d 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 90e6685..27e3842 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 27a6d1f..0913f42 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 d1b79bd..783f05e 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;
--
1.6.2.rc1.285.gc5f54
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais