From 2208c6a3754d8f0aee08efc17aa680d6c10ebdc1 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Tue, 15 Dec 2020 18:22:00 +0100 Subject: [PATCH] tests/sys_atomic_utils: update to new API The signature typedefs need to be updated to also include the return value. The test is not otherwise changed. --- tests/sys_atomic_utils/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/sys_atomic_utils/main.c b/tests/sys_atomic_utils/main.c index b4872cfb76..c5ec3a526e 100644 --- a/tests/sys_atomic_utils/main.c +++ b/tests/sys_atomic_utils/main.c @@ -47,10 +47,10 @@ typedef enum { TEST_WIDTH_NUMOF } test_width_t; -typedef void (*fetch_op_u8_t)(volatile uint8_t *dest, uint8_t val); -typedef void (*fetch_op_u16_t)(volatile uint16_t *dest, uint16_t val); -typedef void (*fetch_op_u32_t)(volatile uint32_t *dest, uint32_t val); -typedef void (*fetch_op_u64_t)(volatile uint64_t *dest, uint64_t val); +typedef uint8_t (*fetch_op_u8_t)(volatile uint8_t *dest, uint8_t val); +typedef uint16_t (*fetch_op_u16_t)(volatile uint16_t *dest, uint16_t val); +typedef uint32_t (*fetch_op_u32_t)(volatile uint32_t *dest, uint32_t val); +typedef uint64_t (*fetch_op_u64_t)(volatile uint64_t *dest, uint64_t val); typedef struct { const char *name;