diff --git a/tests/lib/onoff/src/main.c b/tests/lib/onoff/src/main.c index 1b3f66b391d..20f22a3fbf8 100644 --- a/tests/lib/onoff/src/main.c +++ b/tests/lib/onoff/src/main.c @@ -1055,7 +1055,7 @@ static void test_cancel_or_release(void) static void test_sync_basic(void) { struct onoff_sync_service srv = {}; - struct k_spinlock_key key; + k_spinlock_key_t key; int res = 5; int rc; @@ -1132,7 +1132,7 @@ static void test_sync_basic(void) static void test_sync_error(void) { struct onoff_sync_service srv = {}; - struct k_spinlock_key key; + k_spinlock_key_t key; int res = -EPERM; int rc;