From c67a59c42a87d9e4485fc68535c6dc40c3ff3017 Mon Sep 17 00:00:00 2001 From: Sergei Date: Wed, 4 Dec 2024 00:44:56 +0200 Subject: [PATCH] style fix --- libcanard/canard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcanard/canard.c b/libcanard/canard.c index 7f01803..dcf9bfd 100644 --- a/libcanard/canard.c +++ b/libcanard/canard.c @@ -72,9 +72,9 @@ #define INITIAL_TOGGLE_STATE true #define CONTAINER_OF(type, ptr, member) \ - ((type*) (((ptr) == NULL) ? NULL : (void*) (((char*) (ptr)) -offsetof(type, member)))) + ((type*) (((ptr) == NULL) ? NULL : (void*) (((char*) (ptr)) - offsetof(type, member)))) #define CONST_CONTAINER_OF(type, ptr, member) \ - ((const type*) (((ptr) == NULL) ? NULL : (const void*) (((const char*) (ptr)) -offsetof(type, member)))) + ((const type*) (((ptr) == NULL) ? NULL : (const void*) (((const char*) (ptr)) - offsetof(type, member)))) /// Used for inserting new items into AVL trees. CANARD_PRIVATE struct CanardTreeNode* avlTrivialFactory(void* const user_reference)