projects
/
project
/
firewall3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow hex notation in int type options
[project/firewall3.git]
/
options.c
diff --git
a/options.c
b/options.c
index
f261e70
..
8315aaf
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-140,7
+140,7
@@
fw3_parse_bool(void *ptr, const char *val, bool is_list)
bool
fw3_parse_int(void *ptr, const char *val, bool is_list)
{
- int n = strtol(val, NULL,
1
0);
+ int n = strtol(val, NULL, 0);
if (errno == ERANGE || errno == EINVAL)
return false;