From 31a075e08b7ef757dc236cee1e03b25ab47f0c31 Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Sun, 25 Apr 2021 11:23:38 -0400 Subject: [PATCH] Remove function pointer casts --- src/libmdb/props.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libmdb/props.c b/src/libmdb/props.c index 9811e2c..615730a 100644 --- a/src/libmdb/props.c +++ b/src/libmdb/props.c @@ -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 *