projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use glib portable macros to convert gpointer to int
[babeltrace.git]
/
lib
/
trace-handle.c
diff --git
a/lib/trace-handle.c
b/lib/trace-handle.c
index b768a080147ff39db176cce173adc4f01c1cbab5..4c41d2fdf8876cde8c4482c7c7d215fe369ce130 100644
(file)
--- 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,
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;
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,
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;
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,
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;
if (!handle) {
ret = -1;
goto end;
This page took
0.023555 seconds
and
4
git commands to generate.