From 7f018447346bb0c235b57bebda4326324a2b23a3 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Fri, 31 May 2024 13:59:25 +0200 Subject: [PATCH] thread: adapt to API change of thread_measure_stack_free() --- src/thread/riot_c.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread/riot_c.rs b/src/thread/riot_c.rs index 0d11647..763cfad 100644 --- a/src/thread/riot_c.rs +++ b/src/thread/riot_c.rs @@ -178,7 +178,7 @@ impl KernelPID { // alter the signatures and b) it's easier to use on the Rust side with a clear type. start: unsafe { (*thread).stack_start as _ }, size: unsafe { (*thread).stack_size as _ }, - free: unsafe { riot_sys::thread_measure_stack_free((*thread).stack_start) } + free: unsafe { riot_sys::inline::thread_measure_stack_free(thread as *const riot_sys::inline::_thread) } as usize, }); }