Skip to content

Commit 5eb61d5

Browse files
committed
Fix pointer as reported by cppcheck
1 parent 5456ac7 commit 5eb61d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/drivers/CANvenient_Softing.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,14 @@ int softing_update(int index)
199199
{
200200
#ifdef _WIN32
201201

202-
softing_ctx_t* ctx;
202+
const softing_ctx_t* ctx;
203203
unsigned long buf_size_needed = 0;
204204
unsigned long num_channels = 0;
205205
CHDSNAPSHOT* channels = NULL;
206206
unsigned long i;
207207
int found = 0;
208208

209-
ctx = (softing_ctx_t*)can_interface[index].internal;
209+
ctx = (const softing_ctx_t*)can_interface[index].internal;
210210
if (NULL == ctx)
211211
{
212212
return -1;

0 commit comments

Comments
 (0)