Some manual change to for-ranged loop.
Use "const auto&" where possible.
This commit is contained in:
parent
2717b96310
commit
4ac4dacffe
8 changed files with 9 additions and 8 deletions
|
@ -54,7 +54,8 @@ void NodeBindingsMac::PollEvents() {
|
|||
// Wait for new libuv events.
|
||||
int r;
|
||||
do {
|
||||
r = select(fd + 1, &readset, nullptr, nullptr, timeout == -1 ? nullptr : &tv);
|
||||
r = select(fd + 1, &readset, nullptr, nullptr,
|
||||
timeout == -1 ? nullptr : &tv);
|
||||
} while (r == -1 && errno == EINTR);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue