Page MenuHomeFreeBSD

D45531.diff
No OneTemporary

D45531.diff

diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h
--- a/sys/sys/sysctl.h
+++ b/sys/sys/sysctl.h
@@ -393,14 +393,14 @@
#define SYSCTL_CONST_STRING(parent, nbr, name, access, arg, descr) \
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) & CTLFLAG_WR)); \
CTASSERT(((access) & CTLTYPE) == 0 || \
((access) & SYSCTL_CT_ASSERT_MASK) == CTLTYPE_STRING)
#define SYSCTL_ADD_CONST_STRING(ctx, parent, nbr, name, access, arg, descr) \
({ \
char *__arg = __DECONST(char *, arg); \
- CTASSERT(!(access & CTLFLAG_WR)); \
+ CTASSERT(!((access) & CTLFLAG_WR)); \
CTASSERT(((access) & CTLTYPE) == 0 || \
((access) & SYSCTL_CT_ASSERT_MASK) == CTLTYPE_STRING); \
sysctl_add_oid(ctx, parent, nbr, name, CTLTYPE_STRING | \

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 1, 10:47 PM (15 m, 49 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13284652
Default Alt Text
D45531.diff (917 B)

Event Timeline