Author: kaktus
Date: Tue Feb 25 19:12:40 2020
New Revision: 358318
URL: https://svnweb.freebsd.org/changeset/base/358318

Log:
  SYSCTL_ROOT_NODE should use the SYSCTL_ENFORCE_FLAGS macro too.
  
  Approved by:  kib (mentor, blanket)

Modified:
  head/sys/sys/sysctl.h

Modified: head/sys/sys/sysctl.h
==============================================================================
--- head/sys/sys/sysctl.h       Tue Feb 25 19:11:20 2020        (r358317)
+++ head/sys/sys/sysctl.h       Tue Feb 25 19:12:40 2020        (r358318)
@@ -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)
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to