diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-08-21 15:49:23 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-08-23 14:37:38 +0200 |
commit | 195fe0307526ffc8307842618a7eeb4a421cacf9 (patch) | |
tree | 621583755b577b171237c8f6e57d83017fd03a71 /tools | |
parent | 449c09201030cfb18baf8481430bc150e43f5f07 (diff) | |
download | lvm2-195fe0307526ffc8307842618a7eeb4a421cacf9.tar.gz lvm2-195fe0307526ffc8307842618a7eeb4a421cacf9.tar.xz lvm2-195fe0307526ffc8307842618a7eeb4a421cacf9.zip |
cleanup: use proper activation_change_t
Diffstat (limited to 'tools')
-rw-r--r-- | tools/pvscan.c | 3 | ||||
-rw-r--r-- | tools/vgchange.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/pvscan.c b/tools/pvscan.c index a846322e..6c634e35 100644 --- a/tools/pvscan.c +++ b/tools/pvscan.c @@ -97,7 +97,8 @@ static void _pvscan_display_single(struct cmd_context *cmd, pv_pe_size(pv))); } -static int _auto_activation_handler(struct volume_group *vg, int partial, int activate) +static int _auto_activation_handler(struct volume_group *vg, int partial, + activation_change_t activate) { /* TODO: add support for partial and clustered VGs */ if (partial || vg_is_clustered(vg)) diff --git a/tools/vgchange.c b/tools/vgchange.c index 2013447b..c59d58e0 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -512,7 +512,8 @@ static int vgchange_single(struct cmd_context *cmd, const char *vg_name, } if (arg_count(cmd, activate_ARG)) { - if (!vgchange_activate(cmd, vg, arg_uint_value(cmd, activate_ARG, CHANGE_AY))) + if (!vgchange_activate(cmd, vg, (activation_change_t) + arg_uint_value(cmd, activate_ARG, CHANGE_AY))) return ECMD_FAILED; } |