X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fmarker.h;h=3d04db8870b142e5fe9e9ac2bfccb796845869e9;hb=ec7a5af61127aa50a1839eee5be99ce53494c57b;hp=93f6ff610ebb1b43e1ddb00990c5164f9f8e174b;hpb=c09a11e9677885425f146617448fc7d1f5affe90;p=lttv.git diff --git a/ltt/branches/poly/ltt/marker.h b/ltt/branches/poly/ltt/marker.h index 93f6ff61..3d04db88 100644 --- a/ltt/branches/poly/ltt/marker.h +++ b/ltt/branches/poly/ltt/marker.h @@ -66,8 +66,8 @@ static inline struct marker_info *marker_get_info_from_name(LttTrace *trace, gpointer orig_key, value; int res; - res = g_hash_table_lookup_extended(trace->markers_hash, (gconstpointer)name, - &orig_key, &value); + res = g_hash_table_lookup_extended(trace->markers_hash, + (gconstpointer)(gulong)name, &orig_key, &value); if (!res) return NULL; return marker_get_info_from_id(trace, (guint16)(gulong)value); @@ -80,7 +80,7 @@ static inline char *marker_get_format_from_name(LttTrace *trace, int res; res = g_hash_table_lookup_extended(trace->markers_format_hash, - (gconstpointer)name, &orig_key, &value); + (gconstpointer)(gulong)name, &orig_key, &value); if (!res) return NULL; return (char *)value;