Allow octal or hex input.

Suggested-by:	Geoff Steckel <gwes@sitaranetworks.com>
This commit is contained in:
Greg Lehey 1999-11-17 23:42:09 +00:00
parent bdf1e3f204
commit 26909c8019
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53317

View File

@ -168,7 +168,7 @@ parse(char *string)
switch (kind & CTLTYPE) {
case CTLTYPE_INT:
intval = atoi(newval);
intval = (int) strtol(newval, NULL, 0);
newval = &intval;
newsize = sizeof intval;
break;