mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-28 05:57:49 +03:00
Fix some forgotten -Wold-style-definition gcc warnings
This commit is contained in:
parent
42f177b3e2
commit
34b60db59f
@ -334,11 +334,12 @@ static int _file_lock_resource(struct cmd_context *cmd, const char *resource,
|
||||
|
||||
int init_file_locking(struct locking_type *locking, struct cmd_context *cmd)
|
||||
{
|
||||
int r;
|
||||
|
||||
locking->lock_resource = _file_lock_resource;
|
||||
locking->reset_locking = _reset_file_locking;
|
||||
locking->fin_locking = _fin_file_locking;
|
||||
locking->flags = 0;
|
||||
int r;
|
||||
|
||||
/* Get lockfile directory from config file */
|
||||
strncpy(_lock_dir, find_config_tree_str(cmd, "global/locking_dir",
|
||||
|
@ -127,7 +127,7 @@ void fin_log(void)
|
||||
}
|
||||
}
|
||||
|
||||
void fin_syslog()
|
||||
void fin_syslog(void)
|
||||
{
|
||||
if (_syslog)
|
||||
closelog();
|
||||
|
Loading…
x
Reference in New Issue
Block a user