if (addr->name != NULL) {
/* check for MIME encoded-word */
- if (strstr(addr->name, "=?"))
+ if (strstr(addr->name, "=?") != NULL)
/* MIME encoded-word MUST NOT appear within a 'quoted-string'
so escaping and quoting of phrase is not possible, instead
use obsolete RFC822 phrase syntax which allow spaces */
if (io == NULL)
continue;
- if (io->io.condition & IO_READ)
+ if ((io->io.condition & IO_READ) != 0)
events |= IO_EPOLL_INPUT;
- if (io->io.condition & IO_WRITE)
+ if ((io->io.condition & IO_WRITE) != 0)
events |= IO_EPOLL_OUTPUT;
- if (io->io.condition & IO_ERROR)
+ if ((io->io.condition & IO_ERROR) != 0)
events |= IO_EPOLL_ERROR;
}
}
old_events = ctx->fds[index].events;
- if (condition & IO_READ)
+ if ((condition & IO_READ) != 0)
ctx->fds[index].events |= IO_POLL_INPUT;
- if (condition & IO_WRITE)
+ if ((condition & IO_WRITE) != 0)
ctx->fds[index].events |= IO_POLL_OUTPUT;
- if (condition & IO_ERROR)
+ if ((condition & IO_ERROR) != 0)
ctx->fds[index].events |= IO_POLL_ERROR;
i_assert(ctx->fds[index].events != old_events);
}
#endif
i_free(io);
- if (condition & IO_READ) {
+ if ((condition & IO_READ) != 0) {
ctx->fds[index].events &= ~(POLLIN|POLLPRI);
ctx->fds[index].revents &= ~(POLLIN|POLLPRI);
}
- if (condition & IO_WRITE) {
+ if ((condition & IO_WRITE) != 0) {
ctx->fds[index].events &= ~POLLOUT;
ctx->fds[index].revents &= ~POLLOUT;
}
(IO_READ|IO_WRITE)) == (IO_READ|IO_WRITE)) {
call = TRUE;
pollfd->revents = 0;
- } else if (io->io.condition & IO_READ) {
+ } else if ((io->io.condition & IO_READ) != 0) {
call = (pollfd->revents & IO_POLL_INPUT) != 0;
pollfd->revents &= ~IO_POLL_INPUT;
- } else if (io->io.condition & IO_WRITE) {
+ } else if ((io->io.condition & IO_WRITE) != 0) {
call = (pollfd->revents & IO_POLL_OUTPUT) != 0;
pollfd->revents &= ~IO_POLL_OUTPUT;
- } else if (io->io.condition & IO_ERROR) {
+ } else if ((io->io.condition & IO_ERROR) != 0) {
call = (pollfd->revents & IO_POLL_ERROR) != 0;
pollfd->revents &= ~IO_POLL_ERROR;
} else {