mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-06 10:16:45 +00:00
refactor: Enable clang-tidy readability-identifier-naming check (#6571)
This commit is contained in:
@@ -20,18 +20,18 @@ getHTTPHeaderTimestamp()
|
||||
char buffer[96];
|
||||
time_t now = 0;
|
||||
time(&now);
|
||||
struct tm now_gmt{};
|
||||
struct tm nowGmt{};
|
||||
#ifndef _MSC_VER
|
||||
gmtime_r(&now, &now_gmt);
|
||||
gmtime_r(&now, &nowGmt);
|
||||
#else
|
||||
gmtime_s(&now_gmt, &now);
|
||||
gmtime_s(&nowGmt, &now);
|
||||
#endif
|
||||
strftime(buffer, sizeof(buffer), "Date: %a, %d %b %Y %H:%M:%S +0000\r\n", &now_gmt);
|
||||
strftime(buffer, sizeof(buffer), "Date: %a, %d %b %Y %H:%M:%S +0000\r\n", &nowGmt);
|
||||
return std::string(buffer);
|
||||
}
|
||||
|
||||
void
|
||||
HTTPReply(int nStatus, std::string const& content, Json::Output const& output, beast::Journal j)
|
||||
httpReply(int nStatus, std::string const& content, json::Output const& output, beast::Journal j)
|
||||
{
|
||||
JLOG(j.trace()) << "HTTP Reply " << nStatus << " " << content;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user