Fix: handle 64-bit trace IDs on 32-bit systems
[babeltrace.git] / formats / lttng-live / lttng-live-comm.c
index 5ae743b1055b0d557a31cfeabc46a7edfee6e740..9b409bc606b4a0963e4281022cd49cabad94acaf 100644 (file)
@@ -382,13 +382,13 @@ int lttng_live_ctf_trace_assign(struct lttng_live_viewer_stream *stream,
        int ret = 0;
 
        trace = g_hash_table_lookup(stream->session->ctf_traces,
-                       (gpointer) ctf_trace_id);
+                       &ctf_trace_id);
        if (!trace) {
                trace = g_new0(struct lttng_live_ctf_trace, 1);
                trace->ctf_trace_id = ctf_trace_id;
                trace->streams = g_ptr_array_new();
                g_hash_table_insert(stream->session->ctf_traces,
-                               (gpointer) ctf_trace_id,
+                               &trace->ctf_trace_id,
                                trace);
        }
        if (stream->metadata_flag)
This page took 0.024036 seconds and 4 git commands to generate.