mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-29 11:13:19 +00:00
refactor: const correctness
Co-authored-by: Federico Di Pierro <nierro92@gmail.com> Signed-off-by: Samuel Gaist <samuel.gaist@idiap.ch>
This commit is contained in:
parent
995aa0c582
commit
577ee7ffbe
@ -128,7 +128,7 @@ void falco_logger::log(falco_logger::level priority, const std::string&& msg) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const struct tm* ltm = std::localtime(&result);
|
const struct tm* ltm = std::localtime(&result);
|
||||||
static char format[] = "WWW MMM DD HH:mm:ss YYYY";
|
static const char format[] = "WWW MMM DD HH:mm:ss YYYY";
|
||||||
char tstr[sizeof(format)];
|
char tstr[sizeof(format)];
|
||||||
std::strftime(tstr, sizeof(tstr), format, ltm);
|
std::strftime(tstr, sizeof(tstr), format, ltm);
|
||||||
fprintf(stderr, "%s: %s", tstr, copy.c_str());
|
fprintf(stderr, "%s: %s", tstr, copy.c_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user