1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Use void parameter for function definition.

This commit is contained in:
Zdenek Kabelac 2010-08-03 13:06:35 +00:00
parent 0a89c2307e
commit 9f926fd060
7 changed files with 12 additions and 12 deletions

View File

@ -29,7 +29,7 @@
static const char SINGLENODE_CLVMD_SOCKNAME[] = DEFAULT_RUN_DIR "/clvmd_singlenode.sock";
static int listen_fd = -1;
static void close_comms()
static void close_comms(void)
{
if (listen_fd != -1 && close(listen_fd))
stack;
@ -37,7 +37,7 @@ static void close_comms()
listen_fd = -1;
}
static int init_comms()
static int init_comms(void)
{
struct sockaddr_un addr;
mode_t old_mask;
@ -112,7 +112,7 @@ static int _name_from_csid(const char *csid, char *name)
return 0;
}
static int _get_num_nodes()
static int _get_num_nodes(void)
{
return 1;
}
@ -222,7 +222,7 @@ static int _unlock_resource(const char *resource, int lockid)
return 0;
}
static int _is_quorate()
static int _is_quorate(void)
{
return 1;
}

View File

@ -280,7 +280,7 @@ static void remove_lockfile(void)
/*
* clvmd require dm-ioctl capability for operation
*/
static void check_permissions()
static void check_permissions(void)
{
if (getuid() || geteuid()) {
log_error("Cannot run as a non-root user.");

View File

@ -624,7 +624,7 @@ int do_refresh_cache()
/* Only called at gulm startup. Drop any leftover VG or P_orphan locks
that might be hanging around if we died for any reason
*/
static void drop_vg_locks()
static void drop_vg_locks(void)
{
char vg[128];
char line[255];
@ -810,7 +810,7 @@ static void lvm2_log_fn(int level, const char *file, int line, int dm_errno,
}
/* This checks some basic cluster-LVM configuration stuff */
static void check_config()
static void check_config(void)
{
int locking_type;

View File

@ -25,7 +25,7 @@ static struct text_vg_version_ops *(_text_vsn_list[2]);
static int _text_import_initialised = 0;
static void _init_text_import()
static void _init_text_import(void)
{
if (_text_import_initialised)
return;

View File

@ -118,7 +118,7 @@ static void _trap_ctrl_c(int sig __attribute__((unused)))
log_error("CTRL-c detected: giving up waiting for lock");
}
static void _install_ctrl_c_handler()
static void _install_ctrl_c_handler(void)
{
_handler_installed = 1;

View File

@ -139,7 +139,7 @@ static void *_align(void *ptr, unsigned int a)
return (void *) (((unsigned long) ptr + agn) & ~agn);
}
static int _uname()
static int _uname(void)
{
static int _uts_set = 0;
struct utsname _uts;

View File

@ -930,7 +930,7 @@ int dm_udev_wait(uint32_t cookie)
#else /* UDEV_SYNC_SUPPORT */
static int _check_semaphore_is_supported()
static int _check_semaphore_is_supported(void)
{
int maxid;
union semun arg;
@ -976,7 +976,7 @@ bad:
return 0;
}
static void _check_udev_sync_requirements_once()
static void _check_udev_sync_requirements_once(void)
{
if (_semaphore_supported < 0)
_semaphore_supported = _check_semaphore_is_supported();