From 35bae18e43c0f5614e3b5a1fd1f687608926a044 Mon Sep 17 00:00:00 2001 From: Benjamin Jacobs Date: Mon, 6 Jun 2016 11:20:37 -0700 Subject: [PATCH] eio: fix pointer comparison. Fix a warning on dragonfly. Signed-off-by: Cedric BAIL --- src/lib/eio/eio_monitor_kevent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eio/eio_monitor_kevent.c b/src/lib/eio/eio_monitor_kevent.c index 753726b..78be0ee 100644 --- a/src/lib/eio/eio_monitor_kevent.c +++ b/src/lib/eio/eio_monitor_kevent.c @@ -103,7 +103,7 @@ void eio_monitor_backend_init(void) { int fd; - if (_kqueue_fd > 0) return; // already initialized + if (_kqueue_fd != NULL) return; // already initialized fd = kqueue(); if (fd < 0) return; -- 2.7.4