Use a direct hash rather than an int hash

This commit is contained in:
Mike Hearn 2004-07-04 21:52:26 +00:00
parent 62c4728327
commit c712f972cb
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
Sun Jul 4 22:54:44 GMT 2004 Mike Hearn <mike@navi.cx>
* libnotify/notify.c: Use a direct hash rather than an int hash
Sun Jul 04 14:32:46 PDT 2004 Christian Hammond <chipx86@gnupdate.org>
* libnotify/notify.c:

View File

@ -101,7 +101,7 @@ _notify_handle_new(guint32 id)
handle->id = id;
g_hash_table_insert(_handles, GINT_TO_POINTER(id), handle);
g_hash_table_insert(_handles, id, handle);
return handle;
}
@ -353,7 +353,7 @@ notify_init(const char *app_name)
_app_name = g_strdup(app_name);
_handles = g_hash_table_new_full(g_int_hash, g_int_equal,
_handles = g_hash_table_new_full(g_direct_hash, g_int_equal,
NULL, (GFreeFunc)_notify_handle_destroy);
#ifdef HAVE_ATEXIT