Skip to content

Commit

Permalink
Make GetUserReference pointer argument const
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuckler committed Mar 1, 2024
1 parent 0ae477b commit e2ef079
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion canard.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void canardInit(CanardInstance* out_ins,
initPoolAllocator(&out_ins->allocator, mem_arena, (uint16_t)pool_capacity);
}

void* canardGetUserReference(CanardInstance* ins)
void* canardGetUserReference(const CanardInstance* ins)
{
CANARD_ASSERT(ins != NULL);
return ins->user_reference;
Expand Down
2 changes: 1 addition & 1 deletion canard.h
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ void canardInit(CanardInstance* out_ins, ///< Uninitialized l
* The user pointer is configured once during initialization.
* It can be used to store references to any user-specific data, or to link the instance object with C++ objects.
*/
void* canardGetUserReference(CanardInstance* ins);
void* canardGetUserReference(const CanardInstance* ins);

/**
* Assigns a new node ID value to the current node.
Expand Down

0 comments on commit e2ef079

Please sign in to comment.