X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Fconsumer%2Fconsumer-stream.cpp;h=33f97c77e66a2e074718ad8ce81b8073c3abe7e8;hb=139a8d250fb18f8ffc95b0936f7285f7b484b72f;hp=f57e37ab81379027daf318acc58d2b90b710b41d;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/src/common/consumer/consumer-stream.cpp b/src/common/consumer/consumer-stream.cpp index f57e37ab8..33f97c77e 100644 --- a/src/common/consumer/consumer-stream.cpp +++ b/src/common/consumer/consumer-stream.cpp @@ -35,9 +35,9 @@ static void free_stream_rcu(struct rcu_head *head) { struct lttng_ht_node_u64 *node = - caa_container_of(head, struct lttng_ht_node_u64, head); + lttng::utils::container_of(head, <tng_ht_node_u64::head); struct lttng_consumer_stream *stream = - caa_container_of(node, struct lttng_consumer_stream, node); + lttng::utils::container_of(node, <tng_consumer_stream::node); pthread_mutex_destroy(&stream->lock); free(stream); @@ -654,7 +654,7 @@ struct lttng_consumer_stream *consumer_stream_create( int ret; struct lttng_consumer_stream *stream; - stream = (lttng_consumer_stream *) zmalloc(sizeof(*stream)); + stream = zmalloc(); if (stream == NULL) { PERROR("malloc struct lttng_consumer_stream"); ret = -ENOMEM;