Skip to content

Commit

Permalink
timer: rename local variable to avoid shadowing global
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Dec 27, 2023
1 parent 9c72487 commit 4b86232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/timer/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ static timer_action_t *timer_executed = 0;
}

static timer_action_t *find_action_by_name(
timer_action_t *timer_actions, char *name, int len)
timer_action_t *timer_actions_list, char *name, int len)
{
timer_action_t *a;
if(len == -1)
len = strlen(name);
for(a = timer_actions; a; a = a->next) {
for(a = timer_actions_list; a; a = a->next) {
if(a->timer_name && strlen(a->timer_name) == len
&& strncmp(name, a->timer_name, len) == 0)
return a;
Expand Down

0 comments on commit 4b86232

Please sign in to comment.