projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clang-tidy: add Chrome-inspired checks
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
ust-consumer.cpp
diff --git
a/src/bin/lttng-sessiond/ust-consumer.cpp
b/src/bin/lttng-sessiond/ust-consumer.cpp
index 6b646fb941c767b1e4bdbd546619625f6c1186f3..1d8e8ac054669736dd464f78fde48d783358a3bd 100644
(file)
--- 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;
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] = "";
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. */
}
/* Next, get all streams. */
- while (
1
) {
+ while (
true
) {
struct ust_app_stream *stream;
/* Create UST stream */
stream = ust_app_alloc_stream();
struct ust_app_stream *stream;
/* Create UST stream */
stream = ust_app_alloc_stream();
- if (stream ==
NULL
) {
+ if (stream ==
nullptr
) {
ret = -ENOMEM;
goto error;
}
ret = -ENOMEM;
goto error;
}
This page took
0.023695 seconds
and
4
git commands to generate.