warnings--
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 11 Feb 2010 15:29:20 +0000 (15:29 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 11 Feb 2010 15:29:20 +0000 (15:29 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46079 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_hash.c

index c5731e8..0c6306c 100644 (file)
@@ -265,7 +265,7 @@ eina_hash_add_alloc_by_hash(Eina_Hash *hash,
 
    /* add the new element to the hash. */
    eh->head = eina_rbtree_inline_insert(eh->head, EINA_RBTREE_GET(el),
-                                       EINA_RBTREE_CMP_NODE_CB(_eina_hash_key_rbtree_cmp_node), hash->key_cmp_cb);
+                                       EINA_RBTREE_CMP_NODE_CB(_eina_hash_key_rbtree_cmp_node), (const void *)hash->key_cmp_cb);
    hash->population++;
    return EINA_TRUE;
 
@@ -314,7 +314,7 @@ _eina_hash_find_by_hash(const Eina_Hash *hash, Eina_Hash_Tuple *tuple, int key_h
 
    el = (Eina_Hash_El*) eina_rbtree_inline_lookup((*eh)->head,
                                                  tuple, 0,
-                                                 EINA_RBTREE_CMP_KEY_CB(_eina_hash_key_rbtree_cmp_key_data), hash->key_cmp_cb);
+                                                 EINA_RBTREE_CMP_KEY_CB(_eina_hash_key_rbtree_cmp_key_data), (const void *)hash->key_cmp_cb);
 
    return el;
 }
@@ -368,7 +368,7 @@ _eina_hash_head_free(Eina_Hash_Head *eh, Eina_Hash *hash)
 static Eina_Bool
 _eina_hash_del_by_hash_el(Eina_Hash *hash, Eina_Hash_El *el, Eina_Hash_Head *eh, int key_hash)
 {
-   eh->head = eina_rbtree_inline_remove(eh->head, EINA_RBTREE_GET(el), EINA_RBTREE_CMP_NODE_CB(_eina_hash_key_rbtree_cmp_node), hash->key_cmp_cb);
+  eh->head = eina_rbtree_inline_remove(eh->head, EINA_RBTREE_GET(el), EINA_RBTREE_CMP_NODE_CB(_eina_hash_key_rbtree_cmp_node), (const void *)hash->key_cmp_cb);
    _eina_hash_el_free(el, hash);
 
    if (!eh->head)