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

@ -545,8 +545,9 @@ ThreadHandle_join(ThreadHandle *self, PyTime_t timeout_ns)
}
static int
set_done(ThreadHandle *handle)
set_done(void *arg)
{
ThreadHandle *handle = (ThreadHandle*)arg;
assert(get_thread_handle_state(handle) == THREAD_HANDLE_RUNNING);
if (detach_thread(handle) < 0) {
PyErr_SetString(ThreadError, "failed detaching handle");
@ -564,7 +565,7 @@ ThreadHandle_set_done(ThreadHandle *self)
return -1;
}
if (_PyOnceFlag_CallOnce(&self->once, (_Py_once_fn_t *)set_done, self) ==
if (_PyOnceFlag_CallOnce(&self->once, set_done, self) ==
-1) {
return -1;
}