X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Flive.cpp;h=786feaae83651acf86f3115b0cb0f3530552cf2a;hb=5c7248cd5bce45bf64d563fb4e130a63bf345f11;hp=f862709ac7838840c33f554edec59e415602e391;hpb=cd9adb8b829564212158943a0d279bb35322ab30;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/live.cpp b/src/bin/lttng-relayd/live.cpp index f862709ac..786feaae8 100644 --- a/src/bin/lttng-relayd/live.cpp +++ b/src/bin/lttng-relayd/live.cpp @@ -904,7 +904,9 @@ static void *thread_dispatcher(void *data __attribute__((unused))) * the data will be read at some point in time * or wait to the end of the world :) */ - ret = lttng_write(live_conn_pipe[1], &conn, sizeof(conn)); + ret = lttng_write(live_conn_pipe[1], &conn, sizeof(conn)); /* NOLINT sizeof + used on a + pointer. */ if (ret < 0) { PERROR("write conn pipe"); connection_put(conn); @@ -2640,7 +2642,10 @@ restart: if (revents & LPOLLIN) { struct relay_connection *conn; - ret = lttng_read(live_conn_pipe[0], &conn, sizeof(conn)); + ret = lttng_read(live_conn_pipe[0], + &conn, + sizeof(conn)); /* NOLINT sizeof used on a + pointer. */ if (ret < 0) { goto error; }