summaryrefslogtreecommitdiffstats
path: root/subopt-helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'subopt-helper.c')
-rw-r--r--subopt-helper.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/subopt-helper.c b/subopt-helper.c
index e40f9f40d0..6167778b9f 100644
--- a/subopt-helper.c
+++ b/subopt-helper.c
@@ -303,17 +303,13 @@ static char const * parse_str( char const * str, strarg_t * const valp )
int int_non_neg(void *iptr)
{
int *i = iptr;
- if ( *i < 0 ) { return 0; }
-
- return 1;
+ return *i >= 0;
}
/** \brief Test if i is positive. */
int int_pos(void *iptr)
{
int *i = iptr;
- if ( *i > 0 ) { return 1; }
-
- return 0;
+ return *i > 0;
}
/*** little helpers */