Module: kamailio
Branch: master
Commit: 4b862326cce4b16154353d393d60c8f12762da86
URL: 
https://github.com/kamailio/kamailio/commit/4b862326cce4b16154353d393d60c8f12762da86

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2023-12-27T12:09:26+01:00

timer: rename local variable to avoid shadowing global

---

Modified: src/modules/timer/timer.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/4b862326cce4b16154353d393d60c8f12762da86.diff
Patch: 
https://github.com/kamailio/kamailio/commit/4b862326cce4b16154353d393d60c8f12762da86.patch

---

diff --git a/src/modules/timer/timer.c b/src/modules/timer/timer.c
index a7741496626..2f3f1b1bf34 100644
--- a/src/modules/timer/timer.c
+++ b/src/modules/timer/timer.c
@@ -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;

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to