Remove function pointer casts

This commit is contained in:
Evan Miller
2021-04-25 11:23:38 -04:00
parent e796ac173a
commit 31a075e08b

View File

@@ -63,7 +63,7 @@ mdb_free_props(MdbProperties *props)
if (props->name) g_free(props->name);
if (props->hash) {
g_hash_table_foreach(props->hash, (GHFunc)free_hash_entry, 0);
g_hash_table_foreach(props->hash, free_hash_entry, 0);
g_hash_table_destroy(props->hash);
}
g_free(props);
@@ -76,7 +76,7 @@ do_g_free(gpointer ptr, gpointer user_data) {
static void
free_names(GPtrArray *names) {
g_ptr_array_foreach(names, (GFunc)do_g_free, NULL);
g_ptr_array_foreach(names, do_g_free, NULL);
g_ptr_array_free(names, TRUE);
}
MdbProperties *