mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 15:40:44 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110241
|
@ -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 a new issue