Address some (although not all) style(9) issues in event.h after r335776.

Reported by:	bde@
MFC after:	1 day
Sponsored by:	Dell EMC
This commit is contained in:
David Bright 2018-07-11 02:09:11 +00:00
parent 5857fba5fd
commit 5539e88ac3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336186

View File

@ -50,16 +50,16 @@
#define EVFILT_SYSCOUNT 13
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define EV_SET(kevp_, a, b, c, d, e, f) do { \
*(kevp_) = (struct kevent){ \
.ident = (a), \
.filter = (b), \
.flags = (c), \
.fflags = (d), \
.data = (e), \
.udata = (f), \
.ext = {0}, \
}; \
#define EV_SET(kevp_, a, b, c, d, e, f) do { \
*(kevp_) = (struct kevent){ \
.ident = (a), \
.filter = (b), \
.flags = (c), \
.fflags = (d), \
.data = (e), \
.udata = (f), \
.ext = {0}, \
}; \
} while(0)
#else /* Pre-C99 or not STDC (e.g., C++) */
/* The definition of the local variable kevp could possibly conflict