}
fcopy = g_new(char, strlen(format)+1);
strcpy(fcopy, format);
- g_hash_table_insert(trace->markers_format_hash, (gpointer)name,
+ g_hash_table_insert(trace->markers_format_hash, (gpointer)(gulong)name,
(gpointer)fcopy);
info = marker_get_info_from_name(trace, name);
info->format, g_quark_to_string(name));
head = marker_get_info_from_name(trace, name);
if (!head)
- g_hash_table_insert(trace->markers_hash, (gpointer)name,
+ g_hash_table_insert(trace->markers_hash, (gpointer)(gulong)name,
(gpointer)(gulong)id);
else {
struct marker_info *iter;
if (iter->name == name)
found = 1;
if (!found) {
- g_hash_table_replace(trace->markers_hash, (gpointer)name,
+ g_hash_table_replace(trace->markers_hash, (gpointer)(gulong)name,
(gpointer)(gulong)id);
info->next = head;
}
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);
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;
perror("Error in allocating memory for buffer of tracefile");
goto close_file;
}
- g_assert( ( (guint)tf->buffer.head&(8-1) ) == 0); // make sure it's aligned.
+ g_assert( ( (gulong)tf->buffer.head&(8-1) ) == 0); // make sure it's aligned.
header = (struct ltt_block_start_header*)tf->buffer.head;
int get_tracefile_name_number(gchar *raw_name,
GQuark *name,
guint *num,
- guint *tid,
- guint *pgid,
+ gulong *tid,
+ gulong *pgid,
guint64 *creation)
{
guint raw_name_len = strlen(raw_name);
if(ret < 0) continue;
} else if(S_ISREG(stat_buf.st_mode)) {
GQuark name;
- guint num, tid, pgid;
+ guint num;
+ gulong tid, pgid;
guint64 creation;
GArray *group;
- num = tid = pgid = 0;
+ num = 0;
+ tid = pgid = 0;
creation = 0;
if(get_tracefile_name_number(rel_path, &name, &num, &tid, &pgid, &creation))
continue; /* invalid name */
g_assert(0);
goto map_error;
}
- g_assert( ( (guint)tf->buffer.head&(8-1) ) == 0); // make sure it's aligned.
+ g_assert( ( (gulong)tf->buffer.head&(8-1) ) == 0); // make sure it's aligned.
tf->buffer.index = block_num;