master - cleanup: use arg_is_set
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=958cae8fd8e03a1b3d060c07d49953bbdc419b9c Commit: 958cae8fd8e03a1b3d060c07d49953bbdc419b9c Parent: f2ea8904239752df231023a4a3aad704ed8edc73 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Oct 21 12:03:07 2014 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Oct 24 16:39:31 2014 +0200
cleanup: use arg_is_set
--- tools/lvcreate.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
tools/lvcreate.c +2 -2
@@ -790,13 +790,13 @@ static int _read_activation_params(struct lvcreate_params *lp,return 0 ; } -if (arg_count (cmd, setactivationskip_ARG)) { +if (arg_is_set (cmd, setactivationskip_ARG)) { lp->activation_skip |=ACTIVATION_SKIP_SET ;if (arg_int_value (cmd, setactivationskip_ARG,0 )) lp->activation_skip |=ACTIVATION_SKIP_SET_ENABLED ; } -if (arg_count (cmd, ignoreactivationskip_ARG)) +if (arg_is_set (cmd, ignoreactivationskip_ARG)) lp->activation_skip |=ACTIVATION_SKIP_IGNORE ; if (lp->zero && (lp->activation_skip & ACTIVATION_SKIP_SET_ENABLED)