Allow octal or hex input.
Suggested-by: Geoff Steckel <gwes@sitaranetworks.com>
This commit is contained in:
parent
bdf1e3f204
commit
26909c8019
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53317
@ -168,7 +168,7 @@ parse(char *string)
|
|||||||
|
|
||||||
switch (kind & CTLTYPE) {
|
switch (kind & CTLTYPE) {
|
||||||
case CTLTYPE_INT:
|
case CTLTYPE_INT:
|
||||||
intval = atoi(newval);
|
intval = (int) strtol(newval, NULL, 0);
|
||||||
newval = &intval;
|
newval = &intval;
|
||||||
newsize = sizeof intval;
|
newsize = sizeof intval;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user