Skip to content

Commit f11bdf7

Browse files
ajucklertridge
authored andcommitted
Make GetUserReference pointer argument const
1 parent 8ec1d46 commit f11bdf7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

canard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void canardInit(CanardInstance* out_ins,
101101
initPoolAllocator(&out_ins->allocator, mem_arena, (uint16_t)pool_capacity);
102102
}
103103

104-
void* canardGetUserReference(CanardInstance* ins)
104+
void* canardGetUserReference(const CanardInstance* ins)
105105
{
106106
CANARD_ASSERT(ins != NULL);
107107
return ins->user_reference;

canard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ void canardInit(CanardInstance* out_ins, ///< Uninitialized l
471471
* The user pointer is configured once during initialization.
472472
* It can be used to store references to any user-specific data, or to link the instance object with C++ objects.
473473
*/
474-
void* canardGetUserReference(CanardInstance* ins);
474+
void* canardGetUserReference(const CanardInstance* ins);
475475

476476
/**
477477
* Assigns a new node ID value to the current node.

0 commit comments

Comments
 (0)