aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/import.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2025-03-13 16:55:08 +0100
committerGitHub <noreply@github.com>2025-03-13 16:55:08 +0100
commit9a63138e0953fc8efc2d52154f17c383259854e1 (patch)
treeab37e1e46b026959371c84700d2b0f0a3ab73fa4 /Python/import.c
parente9d210bfc248f33cc713a6026b6cbb87fdab3973 (diff)
downloadcpython-9a63138e0953fc8efc2d52154f17c383259854e1.tar.gz
cpython-9a63138e0953fc8efc2d52154f17c383259854e1.zip
gh-111178: Fix function signatures in misc files (#131180)
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c5
1 files changed, 3 insertions, 2 deletions
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) {