1
Fork 0
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:
Andreas Kling 2019-06-07 11:46:37 +02:00
parent b34b084619
commit 7770d6a09d

View file

@ -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;
}