Module: kamailio
Branch: master
Commit: 167d8af9ff1c55804a66cc948670ab1d3069e063
URL: 
https://github.com/kamailio/kamailio/commit/167d8af9ff1c55804a66cc948670ab1d3069e063

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2024-01-16T11:03:02+01:00

core: snexpr - rename some inner blocks variables

---

Modified: src/core/utils/snexpr.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/167d8af9ff1c55804a66cc948670ab1d3069e063.diff
Patch: 
https://github.com/kamailio/kamailio/commit/167d8af9ff1c55804a66cc948670ab1d3069e063.patch

---

diff --git a/src/core/utils/snexpr.h b/src/core/utils/snexpr.h
index cdfe55c45d8..5b159a256e3 100644
--- a/src/core/utils/snexpr.h
+++ b/src/core/utils/snexpr.h
@@ -1254,10 +1254,10 @@ extern "C"
                                                        sne_vec_free(&arg.args);
                                                        goto cleanup; /* first 
argument is not a variable */
                                                }
-                                               struct snexpr_var *v;
-                                               for(v = vars->head; v; v = 
v->next) {
-                                                       if(v == 
u->param.var.vref) {
-                                                               struct macro m 
= {v->name, arg.args};
+                                               struct snexpr_var *v1;
+                                               for(v1 = vars->head; v1; v1 = 
v1->next) {
+                                                       if(v1 == 
u->param.var.vref) {
+                                                               struct macro m 
= {v1->name, arg.args};
                                                                
sne_vec_push(&macros, m);
                                                                break;
                                                        }
@@ -1284,9 +1284,9 @@ extern "C"
                                                                char 
varname[14];
                                                                
snprintf(varname, sizeof(varname) - 1, "$%d",
                                                                                
(j + 1));
-                                                               struct 
snexpr_var *v = snexpr_var_find(
+                                                               struct 
snexpr_var *v1 = snexpr_var_find(
                                                                                
vars, varname, strlen(varname));
-                                                               struct snexpr 
ev = snexpr_varref(v);
+                                                               struct snexpr 
ev = snexpr_varref(v1);
                                                                struct snexpr 
assign =
                                                                                
snexpr_binary(SNE_OP_ASSIGN, ev,
                                                                                
                sne_vec_nth(&arg.args, j));
@@ -1409,10 +1409,10 @@ extern "C"
        cleanup:
                sne_vec_foreach(&macros, m, i)
                {
-                       struct snexpr e;
-                       sne_vec_foreach(&m.body, e, j)
+                       struct snexpr e1;
+                       sne_vec_foreach(&m.body, e1, j)
                        {
-                               snexpr_destroy_args(&e);
+                               snexpr_destroy_args(&e1);
                        }
                        sne_vec_free(&m.body);
                }

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

Reply via email to