We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b08a46 commit 3e6d19cCopy full SHA for 3e6d19c
contrib/raftable/raftable.c
@@ -86,15 +86,15 @@ static bool poll_until_writable(int sock, int timeout_ms)
86
struct pollfd pfd = {sock, POLLOUT, 0};
87
int r = poll(&pfd, 1, timeout_ms);
88
if (r != 1) return false;
89
- return pfd.revents & POLLOUT;
+ return (pfd.revents & POLLOUT) != 0;
90
}
91
92
static bool poll_until_readable(int sock, int timeout_ms)
93
{
94
struct pollfd pfd = {sock, POLLIN, 0};
95
96
97
- return pfd.revents & POLLIN;
+ return (pfd.revents & POLLIN) != 0;
98
99
100
static long msec(TimestampTz timer)
0 commit comments