1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Fix warning.

This commit is contained in:
Petr Rockai 2009-07-15 06:11:25 +00:00
parent 8762b5aad4
commit 4782f379e2

View File

@ -70,7 +70,7 @@ static int _readonly_lock_resource(struct cmd_context *cmd,
const char *resource,
uint32_t flags)
{
if (flags & LCK_TYPE_MASK == LCK_WRITE) {
if ((flags & LCK_TYPE_MASK) == LCK_WRITE) {
log_error("Write locks are prohibited with --ignorelockingfailure.");
return 0;
}