mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-14 23:07:17 +00:00
add "void" parameter list to avoid "isn't prototype" warning
* 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): git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1977 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
2a5bd53771
commit
51cad562ae
@ -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);
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user