Martin,

the attached trivial patch fixes the build on NetBSD. Please apply to
master, and/or maint if applicable.

Thanks,

-mato

>From 73a64202bca9f1a24c9c0814d8bbf760add68e37 Mon Sep 17 00:00:00 2001
From: Martin Lucina <m...@kotelna.sk>
Date: Tue, 30 Nov 2010 17:41:58 +0100
Subject: [PATCH] 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 <m...@kotelna.sk>
---
 src/kqueue.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/kqueue.cpp b/src/kqueue.cpp
index b893a85..9b4dcce 100644
--- a/src/kqueue.cpp
+++ b/src/kqueue.cpp
@@ -70,7 +70,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);
 }
-- 
1.7.1

_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to