X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fkernel-consumer.cpp;fp=src%2Fbin%2Flttng-sessiond%2Fkernel-consumer.cpp;h=5efe2c2ae146bcfb7e701c300dd8ce555f1db8b2;hp=15558f207c219d9294d318c40261c86d882dc7ec;hb=cd9adb8b829564212158943a0d279bb35322ab30;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1 diff --git a/src/bin/lttng-sessiond/kernel-consumer.cpp b/src/bin/lttng-sessiond/kernel-consumer.cpp index 15558f207..5efe2c2ae 100644 --- a/src/bin/lttng-sessiond/kernel-consumer.cpp +++ b/src/bin/lttng-sessiond/kernel-consumer.cpp @@ -27,7 +27,7 @@ static char *create_channel_path(struct consumer_output *consumer, size_t *consu { int ret; char tmp_path[PATH_MAX]; - char *pathname = NULL; + char *pathname = nullptr; LTTNG_ASSERT(consumer); @@ -75,7 +75,7 @@ static char *create_channel_path(struct consumer_output *consumer, size_t *consu error: free(pathname); - return NULL; + return nullptr; } /* @@ -87,11 +87,11 @@ static int kernel_consumer_add_channel(struct consumer_socket *sock, unsigned int monitor) { int ret; - char *pathname = NULL; + char *pathname = nullptr; struct lttcomm_consumer_msg lkm; struct consumer_output *consumer; enum lttng_error_code status; - struct ltt_session *session = NULL; + struct ltt_session *session = nullptr; struct lttng_channel_extended *channel_attr_extended; bool is_local_trace; size_t consumer_path_offset = 0;