summaryrefslogtreecommitdiffstats
path: root/lib/locking/file_locking.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2007-08-22 14:38:18 +0000
committerAlasdair Kergon <agk@redhat.com>2007-08-22 14:38:18 +0000
commit21bc366486b241180e43864a03267a6d1e2e9a01 (patch)
tree520259cd2f771dd96f9520f2088fedf256987f6b /lib/locking/file_locking.c
parentd65b20980b63e75903830795a703769ad4030f40 (diff)
downloadlvm2-21bc366486b241180e43864a03267a6d1e2e9a01.tar.gz
lvm2-21bc366486b241180e43864a03267a6d1e2e9a01.tar.xz
lvm2-21bc366486b241180e43864a03267a6d1e2e9a01.zip
Clean up numerous compiler warnings that crept in recently.
Remove several unused parameters from _allocate().
Diffstat (limited to 'lib/locking/file_locking.c')
-rw-r--r--lib/locking/file_locking.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/locking/file_locking.c b/lib/locking/file_locking.c
index 757e4dc8..2ad86fd1 100644
--- a/lib/locking/file_locking.c
+++ b/lib/locking/file_locking.c
@@ -124,7 +124,7 @@ static void _install_ctrl_c_handler()
siginterrupt(SIGINT, 1);
}
-static int _lock_file(const char *file, int flags)
+static int _lock_file(const char *file, uint32_t flags)
{
int operation;
int r = 1;
@@ -204,7 +204,7 @@ static int _lock_file(const char *file, int flags)
}
static int _file_lock_resource(struct cmd_context *cmd, const char *resource,
- int flags)
+ uint32_t flags)
{
char lockfile[PATH_MAX];