projects
/
oweals
/
firewall3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6bfb7a
)
Allow hex notation in int type options
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 30 Apr 2013 18:03:14 +0000
(20:03 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 30 Apr 2013 18:51:42 +0000
(20:51 +0200)
options.c
patch
|
blob
|
history
diff --git
a/options.c
b/options.c
index f261e7038d6d1e717fed7040d5ca99d3353e6f6e..8315aafc3649ac04c32fe08e63218a95d2dacebf 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;