Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115809305
D45531.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
917 B
Referenced Files
None
Subscribers
None
D45531.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 29, 11:34 PM (2 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17848156
Default Alt Text
D45531.diff (917 B)
Attached To
Mode
D45531: sys/sysctl.h: Fix wrong assertion with multiple access flags
Attached
Detach File
Event Timeline
Log In to Comment