X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fglobals.cpp;fp=src%2Fbin%2Flttng-sessiond%2Fglobals.cpp;h=3add6c9eb492dfa3ca36ba9c3f4000cab7ee8b99;hp=2df5b1df0c047f7e15e29727d408a437d04dc719;hb=cd9adb8b829564212158943a0d279bb35322ab30;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1 diff --git a/src/bin/lttng-sessiond/globals.cpp b/src/bin/lttng-sessiond/globals.cpp index 2df5b1df0..3add6c9eb 100644 --- a/src/bin/lttng-sessiond/globals.cpp +++ b/src/bin/lttng-sessiond/globals.cpp @@ -22,8 +22,8 @@ struct health_app *the_health_sessiond; struct notification_thread_handle *the_notification_thread_handle; -struct lttng_ht *the_agent_apps_ht_by_sock = NULL; -struct lttng_ht *the_trigger_agents_ht_by_domain = NULL; +struct lttng_ht *the_agent_apps_ht_by_sock = nullptr; +struct lttng_ht *the_trigger_agents_ht_by_domain = nullptr; struct lttng_kernel_abi_tracer_version the_kernel_tracer_version; struct lttng_kernel_abi_tracer_abi_version the_kernel_tracer_abi_version; @@ -42,7 +42,7 @@ consumer_data the_ustconsumer32_data(LTTNG_CONSUMER32_UST); enum consumerd_state the_ust_consumerd_state; enum consumerd_state the_kernel_consumerd_state; -static void __attribute__((constructor)) init_sessiond_uuid(void) +static void __attribute__((constructor)) init_sessiond_uuid() { if (lttng_uuid_generate(the_sessiond_uuid)) { ERR("Failed to generate a session daemon UUID");