summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lib/arg_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib/arg_helper.c')
-rw-r--r--apps/plugins/lib/arg_helper.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/lib/arg_helper.c b/apps/plugins/lib/arg_helper.c
index 756549c2ad..d402300900 100644
--- a/apps/plugins/lib/arg_helper.c
+++ b/apps/plugins/lib/arg_helper.c
@@ -112,7 +112,7 @@ int bool_parse(const char **parameter, bool *choice)
return found;
}
-int longnum_parse(const char **parameter, long *number, unsigned long *decimal)
+int longnum_parse(const char **parameter, long *number, long *decimal)
{
/* passes number and or decimal portion of number base 10 only..
fractional portion is scaled by ARGPARSE_FRAC_DEC_MULTIPLIER
@@ -159,11 +159,11 @@ int longnum_parse(const char **parameter, long *number, unsigned long *decimal)
digits++;
start++;
}
- if (decimal && digits <= AP_MAX_FRAC_DIGITS)
+ if (decimal && digits <= ARGPARSE_MAX_FRAC_DIGITS)
{
- if(digits < AP_MAX_FRAC_DIGITS)
+ if(digits < ARGPARSE_MAX_FRAC_DIGITS)
{
- digits = AP_MAX_FRAC_DIGITS - digits;
+ digits = ARGPARSE_MAX_FRAC_DIGITS - digits;
while (digits--)
dec *= 10;
}