diff options
author | dd <dd@FreeBSD.org> | 2004-03-02 05:42:52 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2004-03-02 05:42:52 +0000 |
commit | ae9f26fffcb781f5fca64afc7aa3e91337c908fa (patch) | |
tree | ec514154b5cc20353c0c740d70a653c071853ca3 /sbin/sysctl | |
parent | 54fa486da2c171a630f8e732d27f25b741ad6ddd (diff) | |
download | FreeBSD-src-ae9f26fffcb781f5fca64afc7aa3e91337c908fa.zip FreeBSD-src-ae9f26fffcb781f5fca64afc7aa3e91337c908fa.tar.gz |
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 . . .
Diffstat (limited to 'sbin/sysctl')
-rw-r--r-- | sbin/sysctl/sysctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index b7284ab..c5c2d6d 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -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"); } |