Simplify the simplification

lol!
This commit is contained in:
Guillaume Roguez committed 2015-10-13 18:37:05 -04:00
1 parent 8a01291b16
commit 0a9bd2b783
1 file changed
+1 -1
+1 -1
View File
@@ -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