X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=lib%2Ftrace-handle.c;fp=lib%2Ftrace-handle.c;h=4c41d2fdf8876cde8c4482c7c7d215fe369ce130;hp=b768a080147ff39db176cce173adc4f01c1cbab5;hb=5b44aff250d4510f7e96447ddc77f0e3ff3f1739;hpb=b04abc0d33636acfb49feaf77284915eb500a885 diff --git a/lib/trace-handle.c b/lib/trace-handle.c index b768a080..4c41d2fd 100644 --- a/lib/trace-handle.c +++ b/lib/trace-handle.c @@ -60,7 +60,7 @@ const char *bt_trace_handle_get_path(struct bt_context *ctx, int handle_id) return NULL; handle = g_hash_table_lookup(ctx->trace_handles, - (gpointer) (unsigned long) handle_id); + GUINT_TO_POINTER(handle_id)); if (!handle) return NULL; return handle->path; @@ -77,7 +77,7 @@ int bt_trace_handle_get_timestamp_begin(struct bt_context *ctx, return -1; handle = g_hash_table_lookup(ctx->trace_handles, - (gpointer) (unsigned long) handle_id); + GUINT_TO_POINTER(handle_id)); if (!handle) { ret = -1; goto end; @@ -105,7 +105,7 @@ int bt_trace_handle_get_timestamp_end(struct bt_context *ctx, return -1; handle = g_hash_table_lookup(ctx->trace_handles, - (gpointer) (unsigned long) handle_id); + GUINT_TO_POINTER(handle_id)); if (!handle) { ret = -1; goto end;