X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ftime.cpp;fp=src%2Fcommon%2Ftime.cpp;h=ca29b2d61891efad38919300ee6771cc70f7008d;hp=5155eb82cf1a74329fa7b0a94ca169e619a36ffa;hb=cd9adb8b829564212158943a0d279bb35322ab30;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1 diff --git a/src/common/time.cpp b/src/common/time.cpp index 5155eb82c..ca29b2d61 100644 --- a/src/common/time.cpp +++ b/src/common/time.cpp @@ -21,7 +21,7 @@ static bool utf8_output_supported; -bool locale_supports_utf8(void) +bool locale_supports_utf8() { return utf8_output_supported; } @@ -57,9 +57,9 @@ struct timespec timespec_abs_diff(struct timespec t1, struct timespec t2) 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")) {