X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-consumer.cpp;fp=src%2Fbin%2Flttng-sessiond%2Fust-consumer.cpp;h=1d8e8ac054669736dd464f78fde48d783358a3bd;hp=6b646fb941c767b1e4bdbd546619625f6c1186f3;hb=cd9adb8b829564212158943a0d279bb35322ab30;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1 diff --git a/src/bin/lttng-sessiond/ust-consumer.cpp b/src/bin/lttng-sessiond/ust-consumer.cpp index 6b646fb94..1d8e8ac05 100644 --- a/src/bin/lttng-sessiond/ust-consumer.cpp +++ b/src/bin/lttng-sessiond/ust-consumer.cpp @@ -42,7 +42,7 @@ static int ask_channel_creation(struct ust_app_session *ua_sess, int ret, output; uint32_t chan_id; uint64_t key, chan_reg_key; - char *pathname = NULL; + char *pathname = nullptr; struct lttcomm_consumer_msg msg; char shm_path[PATH_MAX] = ""; char root_shm_path[PATH_MAX] = ""; @@ -266,12 +266,12 @@ int ust_consumer_get_channel(struct consumer_socket *socket, struct ust_app_chan } /* Next, get all streams. */ - while (1) { + while (true) { struct ust_app_stream *stream; /* Create UST stream */ stream = ust_app_alloc_stream(); - if (stream == NULL) { + if (stream == nullptr) { ret = -ENOMEM; goto error; }