diff options
| author | Mateusz Guzik <mjg@FreeBSD.org> | 2020-01-12 05:25:06 +0000 |
|---|---|---|
| committer | Mateusz Guzik <mjg@FreeBSD.org> | 2020-01-12 05:25:06 +0000 |
| commit | 76a49ebaa6f20a6d11c310fd675b53bfb99360f3 (patch) | |
| tree | a2a7c889d62b6c496977c194125c9c5cecb7a0d7 /sys | |
| parent | a314aba874376e58518dd4a68f7f01a1f8f7f0e8 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/sys/sysctl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index 7e3e983a7ebf..9075e908d04a 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -357,7 +357,7 @@ TAILQ_HEAD(sysctl_ctx_list, sysctl_ctx_entry); /* Oid for a constant '\0' terminated string. */ #define SYSCTL_CONST_STRING(parent, nbr, name, access, arg, descr) \ - SYSCTL_OID(parent, nbr, name, CTLTYPE_STRING|(access), \ + SYSCTL_OID(parent, nbr, name, CTLTYPE_STRING | CTLFLAG_MPSAFE | (access),\ __DECONST(char *, arg), 0, sysctl_handle_string, "A", descr); \ CTASSERT(!(access & CTLFLAG_WR)); \ CTASSERT(((access) & CTLTYPE) == 0 || \ @@ -369,9 +369,9 @@ TAILQ_HEAD(sysctl_ctx_list, sysctl_ctx_entry); CTASSERT(!(access & CTLFLAG_WR)); \ CTASSERT(((access) & CTLTYPE) == 0 || \ ((access) & SYSCTL_CT_ASSERT_MASK) == CTLTYPE_STRING); \ - sysctl_add_oid(ctx, parent, nbr, name, CTLTYPE_STRING|(access), \ - __arg, 0, sysctl_handle_string, "A", __DESCR(descr), \ - NULL); \ + sysctl_add_oid(ctx, parent, nbr, name, CTLTYPE_STRING | \ + CTLFLAG_MPSAFE | (access), __arg, 0, sysctl_handle_string, "A",\ + __DESCR(descr), NULL); \ }) /* Oid for a bool. If ptr is NULL, val is returned. */ |
