13
0

NO-OP: clang-format

This commit is contained in:
Robin Gareus 2022-04-23 22:32:29 +02:00
parent c1d6c0690e
commit 9ce91e2952
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -76,7 +76,7 @@ void
CrossThreadChannel::wakeup ()
{
char c = 0;
(void) ::write (fds[1], &c, 1);
(void)::write (fds[1], &c, 1);
}
void
@ -93,12 +93,12 @@ CrossThreadChannel::deliver (char msg)
}
bool
CrossThreadChannel::poll_for_request()
CrossThreadChannel::poll_for_request ()
{
struct pollfd pfd;
pfd.fd = fds[0];
pfd.events = POLLIN|POLLERR|POLLHUP|POLLNVAL;
while(true) {
pfd.events = POLLIN | POLLERR | POLLHUP | POLLNVAL;
while (true) {
#ifdef __APPLE__
/* on macOS poll() will not return when the pipe
* is closed in an EOF state. ork around with a timeout.