diff --git a/tools/vgchange.c b/tools/vgchange.c index 2856b28c9..d24b17e65 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -590,7 +590,7 @@ int vgchange(struct cmd_context *cmd, int argc, char **argv) if (arg_count(cmd, activate_ARG) && (arg_count(cmd, monitor_ARG) || arg_count(cmd, poll_ARG))) { - if (!is_change_activating(arg_uint_value(cmd, activate_ARG, 0))) { + if (!is_change_activating((activation_change_t) arg_uint_value(cmd, activate_ARG, 0))) { log_error("Only -ay* allowed with --monitor or --poll."); return EINVALID_CMD_LINE; }