From 0a9bd2b78398dee4d0fe80f8441dced3ed27b49a Mon Sep 17 00:00:00 2001
From: Guillaume Roguez <yomgui1@users.noreply.github.com>
Date: Tue, 13 Oct 2015 18:37:05 -0400
Subject: [PATCH] Simplify the simplification

lol!
---
 src/dht.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dht.cpp b/src/dht.cpp
index 5486f9d6..8db33c4c 100644
--- a/src/dht.cpp
+++ b/src/dht.cpp
@@ -71,7 +71,7 @@ set_nonblocking(int fd, int nonblocking)
     if (rc < 0)
         return false;
     rc = fcntl(fd, F_SETFL, nonblocking?(rc | O_NONBLOCK):(rc & ~O_NONBLOCK));
-    return !(rc < 0);
+    return rc >= 0;
 }
 
 #endif
-- 
GitLab