diff --git a/daemons/clvmd/clvmd-singlenode.c b/daemons/clvmd/clvmd-singlenode.c index 4393a2e4b..719e1dc7b 100644 --- a/daemons/clvmd/clvmd-singlenode.c +++ b/daemons/clvmd/clvmd-singlenode.c @@ -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; } diff --git a/daemons/clvmd/clvmd.c b/daemons/clvmd/clvmd.c index 9554eea25..a99e555d9 100644 --- a/daemons/clvmd/clvmd.c +++ b/daemons/clvmd/clvmd.c @@ -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."); diff --git a/daemons/clvmd/lvm-functions.c b/daemons/clvmd/lvm-functions.c index e7db6852c..aedc92317 100644 --- a/daemons/clvmd/lvm-functions.c +++ b/daemons/clvmd/lvm-functions.c @@ -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; diff --git a/lib/format_text/import.c b/lib/format_text/import.c index f686418a8..3e0df94cf 100644 --- a/lib/format_text/import.c +++ b/lib/format_text/import.c @@ -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; diff --git a/lib/locking/file_locking.c b/lib/locking/file_locking.c index 627cb6853..1bf8f1bca 100644 --- a/lib/locking/file_locking.c +++ b/lib/locking/file_locking.c @@ -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; diff --git a/libdm/ioctl/libdm-iface.c b/libdm/ioctl/libdm-iface.c index 50cdec848..c8ba62630 100644 --- a/libdm/ioctl/libdm-iface.c +++ b/libdm/ioctl/libdm-iface.c @@ -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; diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c index 33a35cbd5..6b3f2d2bc 100644 --- a/libdm/libdm-common.c +++ b/libdm/libdm-common.c @@ -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();