]> sourceware.org Git - lvm2.git/commitdiff
Fix warning.
authorPetr Rockai <prokai@redhat.com>
Wed, 15 Jul 2009 06:11:25 +0000 (06:11 +0000)
committerPetr Rockai <prokai@redhat.com>
Wed, 15 Jul 2009 06:11:25 +0000 (06:11 +0000)
lib/locking/no_locking.c

index 0182973c9fb12eb3f1077bb70faf92cd56c4b729..5cbb692f8a2a7007a2c9fd762802180b3571ceb5 100644 (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;
        }
This page took 0.040397 seconds and 5 git commands to generate.