diff options
author | jlemon <jlemon@FreeBSD.org> | 2001-02-28 16:16:31 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2001-02-28 16:16:31 +0000 |
commit | 15e59884c93adf7c0d22cbaca565934c6eda53a9 (patch) | |
tree | 4fc0c2b47810393d37db443cf53e9c3a307eee75 /usr.bin/tail | |
parent | dceceb9475cbb3b1519d2f74ce64fadfe9a8eeef (diff) | |
download | FreeBSD-src-15e59884c93adf7c0d22cbaca565934c6eda53a9.zip FreeBSD-src-15e59884c93adf7c0d22cbaca565934c6eda53a9.tar.gz |
Use EV_SET() macro to initialize kevent structure.
Diffstat (limited to 'usr.bin/tail')
-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 a80a22a..e25e0d6 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) { |