gh-111178: Fix function signatures in misc files (#131180)

This commit is contained in:
Victor Stinner 2025-03-13 16:55:08 +01:00 committed by GitHub
parent e9d210bfc2
commit 9a63138e09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 19 additions and 13 deletions

View file

@ -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) {