X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Ftrace-handle.c;h=4c41d2fdf8876cde8c4482c7c7d215fe369ce130;hb=95fb061d540557dcde8d66671fe842cf096cd1f5;hp=b768a080147ff39db176cce173adc4f01c1cbab5;hpb=61cf588beae752e5ddfc60b6b5310f769ac9e852;p=babeltrace.git 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;