X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fnotification%2Fconsumer_testpoints.cpp;h=d7dc4c21e011401ee09322913d7cc4936517be5b;hp=e390fd9721dd2645e0d2e3972a249fe184904e78;hb=cd9adb8b829564212158943a0d279bb35322ab30;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1 diff --git a/tests/regression/tools/notification/consumer_testpoints.cpp b/tests/regression/tools/notification/consumer_testpoints.cpp index e390fd972..d7dc4c21e 100644 --- a/tests/regression/tools/notification/consumer_testpoints.cpp +++ b/tests/regression/tools/notification/consumer_testpoints.cpp @@ -29,7 +29,7 @@ int lttng_opt_verbose; int lttng_opt_mi; int lttng_opt_quiet; -static void __attribute__((destructor)) pause_pipe_fini(void) +static void __attribute__((destructor)) pause_pipe_fini() { int ret; @@ -67,9 +67,10 @@ int __testpoint_consumerd_thread_data(void) * dynamically would not allow this shared object to be LD_PRELOAD-ed * when launching the session daemon. */ - data_consumption_state = (int *) dlsym(NULL, "data_consumption_paused"); + data_consumption_state = (int *) dlsym(nullptr, "data_consumption_paused"); LTTNG_ASSERT(data_consumption_state); - lttng_consumer_get_type = (lttng_consumer_type(*)()) dlsym(NULL, "lttng_consumer_get_type"); + lttng_consumer_get_type = + (lttng_consumer_type(*)()) dlsym(nullptr, "lttng_consumer_get_type"); LTTNG_ASSERT(lttng_consumer_get_type); switch (lttng_consumer_get_type()) {