API cleanup: Remove handle from struct lttng_ust_channel_buffer
[lttng-ust.git] / liblttng-ust / lttng-ring-buffer-client.h
index 4e2b86a2d6c7ccbef220ed50e0fc1d4730dff0fb..0be36aa2d932793c43bce1fc5d955acbe11b714c 100644 (file)
@@ -675,7 +675,6 @@ struct lttng_ust_channel_buffer *_channel_create(const char *name,
                        stream_fds, nr_stream_fds, blocking_timeout);
        if (!handle)
                goto error;
-       lttng_chan_buf->handle = handle;
        lttng_chan_buf->chan = shmp(handle, handle->chan);
        return lttng_chan_buf;
 
@@ -687,7 +686,7 @@ error:
 static
 void lttng_channel_destroy(struct lttng_ust_channel_buffer *lttng_chan_buf)
 {
-       channel_destroy(lttng_chan_buf->chan, lttng_chan_buf->handle, 1);
+       channel_destroy(lttng_chan_buf->chan, lttng_chan_buf->chan->handle, 1);
        lttng_ust_free_channel_common(lttng_chan_buf->parent);
 }
 
This page took 0.023999 seconds and 4 git commands to generate.