mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
Merge pull request #17 from savoirfairelinux/yomgui-patch-dht
Simplify the simplification
This commit is contained in:
commit
7c1beeaa5c
1 file changed
+1
-1
+1
-1
@@ -72,7 +72,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
|
||||
|
||||
Reference in new issue
Block a user