SYSCTL_ROOT_NODE should use the SYSCTL_ENFORCE_FLAGS macro too.
Approved by: kib (mentor, blanket)
This commit is contained in:
parent
69302907d6
commit
f4d9fa6809
@ -324,6 +324,7 @@ TAILQ_HEAD(sysctl_ctx_list, sysctl_ctx_entry);
|
||||
SYSCTL_OID_RAW(sysctl___##name, &sysctl__children, \
|
||||
nbr, #name, CTLTYPE_NODE|(access), NULL, 0, \
|
||||
handler, "N", descr, NULL); \
|
||||
SYSCTL_ENFORCE_FLAGS(access); \
|
||||
CTASSERT(((access) & CTLTYPE) == 0 || \
|
||||
((access) & SYSCTL_CT_ASSERT_MASK) == CTLTYPE_NODE)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user