1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Clang-format: trivial fix on some headers (#5495)

Fix some headers style and remove them from whitelist
This commit is contained in:
Loïc Blot 2017-04-01 14:48:16 +02:00 committed by GitHub
parent 63ac62ec8a
commit 987eb2b761
13 changed files with 18 additions and 42 deletions

View file

@ -45,8 +45,8 @@ extern u32 getTime(TimePrecision prec);
Timestamp stuff
*/
#include <time.h>
#include <string>
#include <time.h>
inline std::string getTimestamp()
{
@ -54,10 +54,9 @@ inline std::string getTimestamp()
// This is not really thread-safe but it won't break anything
// except its own output, so just go with it.
struct tm *tm = localtime(&t);
char cs[20]; //YYYY-MM-DD HH:MM:SS + '\0'
char cs[20]; // YYYY-MM-DD HH:MM:SS + '\0'
strftime(cs, 20, "%Y-%m-%d %H:%M:%S", tm);
return cs;
}
#endif