Run clang-format on httplib.h and test.cc

Fixes formatting introduced in 199d7ee and d5f8858 that clang-format
18.1.3 (the version used by CI) disagrees with.
This commit is contained in:
yhirose
2026-09-07 16:29:08 -04:00
parent d5f8858731
commit 6303a99ce1
2 changed files with 33 additions and 34 deletions
+3 -4
View File
@@ -4603,8 +4603,8 @@ private:
};
template <class Rep, class Period>
inline void
WebSocket::set_read_timeout(const std::chrono::duration<Rep, Period> &duration) {
inline void WebSocket::set_read_timeout(
const std::chrono::duration<Rep, Period> &duration) {
detail::duration_to_sec_and_usec(
duration, [&](time_t sec, time_t usec) { set_read_timeout(sec, usec); });
}
@@ -6402,8 +6402,7 @@ inline ssize_t select_impl(socket_t sock, short events, time_t sec,
// A negative timeout waits forever, poll's own convention. 0 keeps meaning
// "return immediately", which callers here rely on to probe a socket.
auto timeout =
sec < 0 ? -1 : static_cast<int>(sec * 1000 + usec / 1000);
auto timeout = sec < 0 ? -1 : static_cast<int>(sec * 1000 + usec / 1000);
return handle_EINTR([&]() { return poll_wrapper(&pfd, 1, timeout); });
}