diff options
Diffstat (limited to 'apps/plugins/lib/arg_helper.c')
-rw-r--r-- | apps/plugins/lib/arg_helper.c | 8 |
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) | |||
112 | return found; | 112 | return found; |
113 | } | 113 | } |
114 | 114 | ||
115 | int longnum_parse(const char **parameter, long *number, unsigned long *decimal) | 115 | int longnum_parse(const char **parameter, long *number, long *decimal) |
116 | { | 116 | { |
117 | /* passes number and or decimal portion of number base 10 only.. | 117 | /* passes number and or decimal portion of number base 10 only.. |
118 | fractional portion is scaled by ARGPARSE_FRAC_DEC_MULTIPLIER | 118 | fractional portion is scaled by ARGPARSE_FRAC_DEC_MULTIPLIER |
@@ -159,11 +159,11 @@ int longnum_parse(const char **parameter, long *number, unsigned long *decimal) | |||
159 | digits++; | 159 | digits++; |
160 | start++; | 160 | start++; |
161 | } | 161 | } |
162 | if (decimal && digits <= AP_MAX_FRAC_DIGITS) | 162 | if (decimal && digits <= ARGPARSE_MAX_FRAC_DIGITS) |
163 | { | 163 | { |
164 | if(digits < AP_MAX_FRAC_DIGITS) | 164 | if(digits < ARGPARSE_MAX_FRAC_DIGITS) |
165 | { | 165 | { |
166 | digits = AP_MAX_FRAC_DIGITS - digits; | 166 | digits = ARGPARSE_MAX_FRAC_DIGITS - digits; |
167 | while (digits--) | 167 | while (digits--) |
168 | dec *= 10; | 168 | dec *= 10; |
169 | } | 169 | } |