Skip to content

Commit 6cb080d

Browse files
committed
More fixes to the epoll-on-kqueue implementation
I really need to install a BSD on a VM again to test these things.
1 parent 38ebd48 commit 6cb080d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/missing-epoll.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ static struct timespec *to_timespec(struct timespec *t, int ms)
118118

119119
static int kevent_ident_cmp(const void *ptr0, const void *ptr1)
120120
{
121-
struct kevent *ev0 = ptr0;
122-
struct kevent *ev1 = ptr1;
121+
const struct kevent *ev0 = ptr0;
122+
const struct kevent *ev1 = ptr1;
123123
return (ev0->ident > ev1->ident) - (ev0->ident < ev1->ident);
124124
}
125125

@@ -145,7 +145,7 @@ int epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout)
145145
if (last >= 0)
146146
ev++;
147147

148-
ev->mask = 0;
148+
ev->events = 0;
149149
ev->data.ptr = kev->udata;
150150
}
151151

0 commit comments

Comments
 (0)