eio: fix pointer comparison.
authorBenjamin Jacobs <benj@spam.thsi.be>
Mon, 6 Jun 2016 18:20:37 +0000 (11:20 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 6 Jun 2016 19:05:43 +0000 (12:05 -0700)
Fix a warning on dragonfly.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/eio/eio_monitor_kevent.c

index 753726b..78be0ee 100644 (file)
@@ -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;