From 9a63138e0953fc8efc2d52154f17c383259854e1 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 13 Mar 2025 16:55:08 +0100 Subject: gh-111178: Fix function signatures in misc files (#131180) --- Python/import.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Python/import.c') diff --git a/Python/import.c b/Python/import.c index 6836e13972c..78b380ca6e5 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1146,8 +1146,9 @@ get_cached_m_dict(struct extensions_cache_value *value, } static void -del_extensions_cache_value(struct extensions_cache_value *value) +del_extensions_cache_value(void *raw) { + struct extensions_cache_value *value = raw; if (value != NULL) { del_cached_m_dict(value); del_cached_def(value); @@ -1248,7 +1249,7 @@ _extensions_cache_init(void) hashtable_hash_str, hashtable_compare_str, hashtable_destroy_str, // key - (_Py_hashtable_destroy_func)del_extensions_cache_value, // value + del_extensions_cache_value, // value &alloc ); if (EXTENSIONS.hashtable == NULL) { -- cgit v1.2.3