summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Hearn <mike@navi.cx>2004-07-04 21:52:26 +0000
committerMike Hearn <mike@navi.cx>2004-07-04 21:52:26 +0000
commitc712f972cbcc2e20235d160a1a10b1e0b8076505 (patch)
treec5d0a094797dc8d54808e3bd8637a275fbbbd227
parent62c472832758306d6301c221df126890258704ee (diff)
downloadlibnotify-c712f972cbcc2e20235d160a1a10b1e0b8076505.tar.gz
Use a direct hash rather than an int hash
-rw-r--r--ChangeLog3
-rw-r--r--libnotify/notify.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ce21d15..5713fc7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
diff --git a/libnotify/notify.c b/libnotify/notify.c
index 7760800..41e77d8 100644
--- a/libnotify/notify.c
+++ b/libnotify/notify.c
@@ -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