mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 13:47:13 +01:00
Remove unnecessary cast in kevent_delete
Fixes the build on NetBSD where the compiler complains about casting NULL to (int). Signed-off-by: Martin Lucina <mato@kotelna.sk>
This commit is contained in:
committed by
Martin Sustrik
parent
83d9af9951
commit
289b1f5ced
@@ -74,7 +74,7 @@ void zmq::kqueue_t::kevent_delete (fd_t fd_, short filter_)
|
||||
{
|
||||
struct kevent ev;
|
||||
|
||||
EV_SET (&ev, fd_, filter_, EV_DELETE, 0, 0, (kevent_udata_t)NULL);
|
||||
EV_SET (&ev, fd_, filter_, EV_DELETE, 0, 0, 0);
|
||||
int rc = kevent (kqueue_fd, &ev, 1, NULL, 0, NULL);
|
||||
errno_assert (rc != -1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user