mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 17:07:35 +00:00
LibCore: Run clang-format on everything.
This commit is contained in:
parent
b34b084619
commit
7770d6a09d
1 changed files with 16 additions and 13 deletions
|
@ -58,7 +58,9 @@ bool CIODevice::can_read_from_fd() const
|
|||
fd_set rfds;
|
||||
FD_ZERO(&rfds);
|
||||
FD_SET(m_fd, &rfds);
|
||||
struct timeval timeout { 0, 0 };
|
||||
struct timeval timeout {
|
||||
0, 0
|
||||
};
|
||||
int rc = select(m_fd + 1, &rfds, nullptr, nullptr, &timeout);
|
||||
if (rc < 0) {
|
||||
// NOTE: We don't set m_error here.
|
||||
|
@ -223,7 +225,8 @@ int CIODevice::printf(const char* format, ...)
|
|||
int rc = write((const byte*)&ch, 1);
|
||||
if (rc < 0)
|
||||
dbgprintf("CIODevice::printf: write: %s\n", strerror(errno));
|
||||
}, nullptr, format, ap);
|
||||
},
|
||||
nullptr, format, ap);
|
||||
va_end(ap);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue