Tweak the definition of the EV_SET macro so that it evaluates each
of its arguments exactly once. (Previously it evaluated the first argument six times.) MFC after: 1 week
This commit is contained in:
parent
cb6e9daaa9
commit
485a42f45a
@ -40,7 +40,8 @@
|
||||
|
||||
#define EVFILT_SYSCOUNT 8
|
||||
|
||||
#define EV_SET(kevp, a, b, c, d, e, f) do { \
|
||||
#define EV_SET(kevp_, a, b, c, d, e, f) do { \
|
||||
struct kevent *kevp = (kevp_); \
|
||||
(kevp)->ident = (a); \
|
||||
(kevp)->filter = (b); \
|
||||
(kevp)->flags = (c); \
|
||||
|
Loading…
Reference in New Issue
Block a user