File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,12 +76,12 @@ static int64_t write_sysno = -1;
76
76
static SyscallStats * get_or_create_entry (int64_t num )
77
77
{
78
78
SyscallStats * entry =
79
- (SyscallStats * ) g_hash_table_lookup (statistics , GINT_TO_POINTER ( num ) );
79
+ (SyscallStats * ) g_hash_table_lookup (statistics , & num );
80
80
81
81
if (!entry ) {
82
82
entry = g_new0 (SyscallStats , 1 );
83
83
entry -> num = num ;
84
- g_hash_table_insert (statistics , GINT_TO_POINTER ( num ), ( gpointer ) entry );
84
+ g_hash_table_insert (statistics , & entry -> num , entry );
85
85
}
86
86
87
87
return entry ;
@@ -232,7 +232,7 @@ QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin_id_t id,
232
232
}
233
233
234
234
if (!do_print ) {
235
- statistics = g_hash_table_new_full (NULL , g_direct_equal , NULL , g_free );
235
+ statistics = g_hash_table_new_full (g_int64_hash , g_int64_equal , NULL , g_free );
236
236
}
237
237
238
238
if (do_log_writes ) {
You can’t perform that action at this time.
0 commit comments