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:
nectar 2003-02-02 19:39:51 +00:00
parent 43d52f88dc
commit dd9e20c419

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