summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2017-07-10 21:37:27 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2017-07-10 21:37:27 +0000
commit80e66364fb06c87b632001798ffe2e609a7285c6 (patch)
tree938eaa39078faa38865e81d9624115127ba9da14
parent433b9801a13f7ac0c037774a9dd8955c42ea88dc (diff)
if there are no changes for kevent, pass in NULL instead.
this has no effect except to make ktrace output prettier. ok bluhm mpi
-rw-r--r--lib/libevent/kqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libevent/kqueue.c b/lib/libevent/kqueue.c
index 47966680bfc..d6dd0f50d14 100644
--- a/lib/libevent/kqueue.c
+++ b/lib/libevent/kqueue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kqueue.c,v 1.39 2016/09/03 11:31:17 nayden Exp $ */
+/* $OpenBSD: kqueue.c,v 1.40 2017/07/10 21:37:26 tedu Exp $ */
/*
* Copyright 2000-2002 Niels Provos <provos@citi.umich.edu>
@@ -190,7 +190,7 @@ kq_dispatch(struct event_base *base, void *arg, struct timeval *tv)
ts_p = &ts;
}
- res = kevent(kqop->kq, changes, kqop->nchanges,
+ res = kevent(kqop->kq, kqop->nchanges ? changes : NULL, kqop->nchanges,
events, kqop->nevents, ts_p);
kqop->nchanges = 0;
if (res == -1) {