Module: kamailio
Branch: master
Commit: 167d8af9ff1c55804a66cc948670ab1d3069e063
URL:
https://github.com/kamailio/kamailio/commit/167d8af9ff1c55804a66cc948670ab1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/167d8af9ff1c55804a66cc948670ab1…
Patch:
https://github.com/kamailio/kamailio/commit/167d8af9ff1c55804a66cc948670ab1…
---
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(¯os, 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(¯os, 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);
}