diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-04-01 14:48:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-01 14:48:16 +0200 |
commit | 987eb2b7615104f3f70e56e51f1dd3df5b2a41eb (patch) | |
tree | 8bc37ba6257442f190248c38651db38c6c87cb6e /src/gettime.h | |
parent | 63ac62ec8abe30f0d6dd2cfe0ddaab291c36893f (diff) | |
download | minetest-987eb2b7615104f3f70e56e51f1dd3df5b2a41eb.tar.gz minetest-987eb2b7615104f3f70e56e51f1dd3df5b2a41eb.tar.bz2 minetest-987eb2b7615104f3f70e56e51f1dd3df5b2a41eb.zip |
Clang-format: trivial fix on some headers (#5495)
Fix some headers style and remove them from whitelist
Diffstat (limited to 'src/gettime.h')
-rw-r--r-- | src/gettime.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gettime.h b/src/gettime.h index 44c159026..6e70b8533 100644 --- a/src/gettime.h +++ b/src/gettime.h @@ -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 |