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:
Jacques Vidrine 2003-02-02 19:39:51 +00:00
parent cb6e9daaa9
commit 485a42f45a

View File

@ -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); \