Module: kamailio
Branch: master
Commit: 9c336764f567c873e25792efd813be1806d215d3
URL:
https://github.com/kamailio/kamailio/commit/9c336764f567c873e25792efd813be1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-12-11T13:01:18+01:00
core: cast to variable type action_u_t*
---
Modified: src/core/sr_module.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9c336764f567c873e25792efd813be1…
Patch:
https://github.com/kamailio/kamailio/commit/9c336764f567c873e25792efd813be1…
---
diff --git a/src/core/sr_module.c b/src/core/sr_module.c
index 9660afce320..d67e7e44af3 100644
--- a/src/core/sr_module.c
+++ b/src/core/sr_module.c
@@ -1092,7 +1092,7 @@ action_u_t *fixup_get_param(
{
action_u_t *a;
/* cur_param points to a->u.string, get pointer to a */
- a = (void *)((char *)cur_param - offsetof(action_u_t, u.string));
+ a = (action_u_t *)((char *)cur_param - offsetof(action_u_t, u.string));
return a + required_param_no - cur_param_no;
}
@@ -1114,7 +1114,7 @@ int fixup_get_param_count(void **cur_param, int cur_param_no)
action_param_type *fixup_get_param_ptype(void **param)
{
action_u_t *a;
- a = (void *)((char *)param - offsetof(action_u_t, u.string));
+ a = (action_u_t *)((char *)param - offsetof(action_u_t, u.string));
return &a->type;
}