Fix 'warning: passing argument 2 of ‘slist_copy_deep’ from incompatible pointer type'
authorRicardo Mones <ricardo@mones.org>
Sat, 3 May 2014 11:19:37 +0000 (13:19 +0200)
committerRicardo Mones <ricardo@mones.org>
Sat, 3 May 2014 11:39:38 +0000 (13:39 +0200)
src/addrduplicates.c

index cc3bb22..dcde08a 100644 (file)
@@ -272,7 +272,7 @@ static gint collect_emails(ItemPerson *itemperson, AddressDataSource *ds)
                addr = g_utf8_strdown(email->address, -1);
                old_val = g_hash_table_lookup(addr_hash, addr);
                if(old_val)
-                       new_val = slist_copy_deep(old_val, copy_hash_val);
+                       new_val = slist_copy_deep(old_val, (GCopyFunc)copy_hash_val);
                else
                        new_val = NULL;