Refactoring: remove ring buffer channel pointer from struct lttng_ust_channel_buffer
[lttng-ust.git] / liblttng-ust / lttng-events.c
index 70e2f3a9c6f18d265d3410acd325d7b1cb9fda4a..c81581b228e960ae2f1ae4ff2b44517cb842fca7 100644 (file)
@@ -53,6 +53,7 @@
 #include "ust-events-internal.h"
 #include "wait.h"
 #include "../libringbuffer/shm.h"
+#include "../libringbuffer/frontend_types.h"
 #include "../libcounter/counter.h"
 #include "jhash.h"
 #include <lttng/ust-abi.h>
@@ -237,8 +238,8 @@ void _lttng_channel_unmap(struct lttng_ust_channel_buffer *lttng_chan)
 
        cds_list_del(&lttng_chan->priv->node);
        lttng_destroy_context(lttng_chan->priv->ctx);
-       chan = lttng_chan->chan;
-       handle = lttng_chan->handle;
+       chan = lttng_chan->priv->rb_chan;
+       handle = chan->handle;
        channel_destroy(chan, handle, 0);
        free(lttng_chan->parent);
        free(lttng_chan->priv);
This page took 0.024397 seconds and 4 git commands to generate.