diff options
author | Jonathan Lemon <jlemon@FreeBSD.org> | 2001-02-28 16:16:31 +0000 |
---|---|---|
committer | Jonathan Lemon <jlemon@FreeBSD.org> | 2001-02-28 16:16:31 +0000 |
commit | 6029e6933cddb4d1b46d636b5fa2a26573f04d46 (patch) | |
tree | c1d837c0b9761b9ef96cb46a3d3c23cc268720a7 /usr.bin/tail/forward.c | |
parent | 357c2d78c440418985252261fae4a3ef428c4063 (diff) |
Use EV_SET() macro to initialize kevent structure.
Notes
Notes:
svn path=/head/; revision=73231
Diffstat (limited to 'usr.bin/tail/forward.c')
-rw-r--r-- | usr.bin/tail/forward.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c index a80a22ab2231..e25e0d60a749 100644 --- a/usr.bin/tail/forward.c +++ b/usr.bin/tail/forward.c @@ -198,15 +198,13 @@ forward(fp, style, off, sbp) struct timespec ts = { 0, 0 }; if (Fflag && fileno(fp) != STDIN_FILENO) { - ev[n].ident = fileno(fp); - ev[n].filter = EVFILT_VNODE; - ev[n].flags = EV_ADD | EV_ENABLE | EV_CLEAR; - ev[n].fflags = NOTE_DELETE | NOTE_RENAME; + EV_SET(&ev[n], fileno(fp), EVFILT_VNODE, + EV_ADD | EV_ENABLE | EV_CLEAR, + NOTE_DELETE | NOTE_RENAME, 0, 0); n++; } - ev[n].ident = fileno(fp); - ev[n].filter = EVFILT_READ; - ev[n].flags = EV_ADD | EV_ENABLE; + EV_SET(&ev[n], fileno(fp), EVFILT_READ, + EV_ADD | EV_ENABLE, 0, 0, 0); n++; if (kevent(kq, ev, n, NULL, 0, &ts) < 0) { |