Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 committed Dec 3, 2024
1 parent 7ec9051 commit c67a59c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcanard/canard.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c67a59c

Please sign in to comment.