Fix callback hash table 71/81271/2 accepted/tizen/common/20160725.153630 accepted/tizen/ivi/20160725.083332 accepted/tizen/mobile/20160725.083309 accepted/tizen/tv/20160725.083317 accepted/tizen/wearable/20160725.083312 submit/tizen/20160725.073155
authorSangyoon Jang <s89.jang@samsung.com>
Mon, 25 Jul 2016 07:24:14 +0000 (16:24 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Mon, 25 Jul 2016 07:25:24 +0000 (16:25 +0900)
Use direct_hash instead of int_hash.
The key of hash table is pointer type variable. (pkgmgr_client *)

Change-Id: If9982c9cf99eb3e6b1c09e0011805cd06254d363
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
src/package_manager.c

index 9ec6b7f..37931fd 100644 (file)
@@ -1094,7 +1094,7 @@ static void __free_client(gpointer data)
 
 static void __initialize_cb_table(void)
 {
-       __cb_table = g_hash_table_new_full(g_int_hash, g_int_equal, __free_client, NULL);
+       __cb_table = g_hash_table_new_full(g_direct_hash, g_direct_equal, __free_client, NULL);
 }
 
 static void __result_cb(pkgmgr_client *pc, const char *pkgid, const pkg_size_info_t *result, void *user_data)