Add CTLTYPE_QUAD to the list of types for which we don't want an empty

value.  All the other numeric types are doing it . . .
This commit is contained in:
Dima Dorfman 2004-03-02 05:42:52 +00:00
parent f2b1c1580a
commit 4d90830fd8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126472

View File

@ -214,7 +214,8 @@ parse(char *string)
if ((kind & CTLTYPE) == CTLTYPE_INT ||
(kind & CTLTYPE) == CTLTYPE_UINT ||
(kind & CTLTYPE) == CTLTYPE_LONG ||
(kind & CTLTYPE) == CTLTYPE_ULONG) {
(kind & CTLTYPE) == CTLTYPE_ULONG ||
(kind & CTLTYPE) == CTLTYPE_QUAD) {
if (strlen(newval) == 0)
errx(1, "empty numeric value");
}