mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
Remove function pointer casts
This commit is contained in:
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user