diff --git a/lib/locking/locking_types.h b/lib/locking/locking_types.h index c620e08a0..21aa82fa4 100644 --- a/lib/locking/locking_types.h +++ b/lib/locking/locking_types.h @@ -14,7 +14,7 @@ typedef int (*lock_resource_fn) (struct cmd_context * cmd, const char *resource, typedef void (*fin_lock_fn) (void); typedef void (*reset_lock_fn) (void); -#define LCK_PRE_MEMLOCK 0x00000001 /* Is memlock() needed before calls? */ +#define LCK_PRE_MEMLOCK 0x00000001 /* Is memlock() needed before calls? */ struct locking_type { uint32_t flags; diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index c16527135..54dd8857f 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -468,7 +468,7 @@ int vg_write(struct volume_group *vg) /* Write to each copy of the metadata area */ list_iterate(mdah, &vg->fid->metadata_areas) { mda = list_item(mdah, struct metadata_area); - if(!mda->ops->vg_write) { + if (!mda->ops->vg_write) { log_error("Format does not support writing volume" "group metadata areas"); /* Revert */