mirror of
https://github.com/openbsd/src.git
synced 2026-06-18 07:13:36 +02:00
add parentheses around use of a macro argument
This commit is contained in:
@@ -32,7 +32,7 @@ struct xarray {
|
||||
#define DEFINE_XARRAY_FLAGS(name, flags) \
|
||||
struct xarray name = { \
|
||||
.xa_flags = flags, \
|
||||
.xa_lock = MUTEX_INITIALIZER((flags & XA_FLAGS_LOCK_IRQ) ? \
|
||||
.xa_lock = MUTEX_INITIALIZER(((flags) & XA_FLAGS_LOCK_IRQ) ? \
|
||||
IPL_TTY : IPL_NONE), \
|
||||
.xa_tree = SPLAY_INITIALIZER(&name.xa_tree) \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user