diff options
author | Alasdair Kergon <agk@redhat.com> | 2007-08-22 14:38:18 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2007-08-22 14:38:18 +0000 |
commit | 21bc366486b241180e43864a03267a6d1e2e9a01 (patch) | |
tree | 520259cd2f771dd96f9520f2088fedf256987f6b /lib/locking/no_locking.c | |
parent | d65b20980b63e75903830795a703769ad4030f40 (diff) | |
download | lvm2-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/no_locking.c')
-rw-r--r-- | lib/locking/no_locking.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/locking/no_locking.c b/lib/locking/no_locking.c index a2bb132a..0b70951b 100644 --- a/lib/locking/no_locking.c +++ b/lib/locking/no_locking.c @@ -37,7 +37,7 @@ static void _no_reset_locking(void) } static int _no_lock_resource(struct cmd_context *cmd, const char *resource, - int flags) + uint32_t flags) { switch (flags & LCK_SCOPE_MASK) { case LCK_VG: @@ -76,7 +76,7 @@ static int _no_lock_resource(struct cmd_context *cmd, const char *resource, return 1; } -int init_no_locking(struct locking_type *locking, struct cmd_context *cmd) +int init_no_locking(struct locking_type *locking, struct cmd_context *cmd __attribute((unused))) { locking->lock_resource = _no_lock_resource; locking->reset_locking = _no_reset_locking; |