projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clang-tidy: add Chrome-inspired checks
[lttng-tools.git]
/
src
/
common
/
time.cpp
diff --git
a/src/common/time.cpp
b/src/common/time.cpp
index 5155eb82cf1a74329fa7b0a94ca169e619a36ffa..ca29b2d61891efad38919300ee6771cc70f7008d 100644
(file)
--- a/
src/common/time.cpp
+++ b/
src/common/time.cpp
@@
-21,7
+21,7
@@
static bool utf8_output_supported;
static bool utf8_output_supported;
-bool locale_supports_utf8(
void
)
+bool locale_supports_utf8()
{
return utf8_output_supported;
}
{
return utf8_output_supported;
}
@@
-57,9
+57,9
@@
struct timespec timespec_abs_diff(struct timespec t1, struct timespec t2)
return res;
}
return res;
}
-static void __attribute__((constructor)) init_locale_utf8_support(
void
)
+static void __attribute__((constructor)) init_locale_utf8_support()
{
{
- const char *program_locale = setlocale(LC_ALL,
NULL
);
+ const char *program_locale = setlocale(LC_ALL,
nullptr
);
const char *lang = getenv("LANG");
if (program_locale && strstr(program_locale, "utf8")) {
const char *lang = getenv("LANG");
if (program_locale && strstr(program_locale, "utf8")) {
This page took
0.025151 seconds
and
4
git commands to generate.