mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
Simplify the simplification
lol!
This commit is contained in:
1 parent
8a01291b16
commit
0a9bd2b783
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user