Module: kamailio
Branch: master
Commit: 73e36b6a467491252e1f81be1b8da66d6c1a4b1b
URL:
https://github.com/kamailio/kamailio/commit/73e36b6a467491252e1f81be1b8da66…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-10-30T18:28:18+01:00
core: use pv_elem_t for vstr fixup value get
---
Modified: src/core/mod_fix.c
Modified: src/core/mod_fix.h
---
Diff:
https://github.com/kamailio/kamailio/commit/73e36b6a467491252e1f81be1b8da66…
Patch:
https://github.com/kamailio/kamailio/commit/73e36b6a467491252e1f81be1b8da66…
---
diff --git a/src/core/mod_fix.c b/src/core/mod_fix.c
index ca2cd6c104..49dbb44f1f 100644
--- a/src/core/mod_fix.c
+++ b/src/core/mod_fix.c
@@ -747,9 +747,9 @@ int fixup_free_vstr_all(void** param, int param_no)
/**
*
*/
-int fixup_get_vstr_buf(sip_msg_t *msg, gparam_t *p, char *buf, int blen)
+int fixup_get_vstr_buf(sip_msg_t *msg, pv_elem_t *p, char *buf, int blen)
{
- if(pv_printf(msg, (pv_elem_t*)p, buf, &blen)<0) {
+ if(pv_printf(msg, p, buf, &blen)<0) {
LM_ERR("unable to get the value\n");
return -1;
}
diff --git a/src/core/mod_fix.h b/src/core/mod_fix.h
index f09cf59e0c..29d937a261 100644
--- a/src/core/mod_fix.h
+++ b/src/core/mod_fix.h
@@ -158,5 +158,5 @@ free_fixup_function mod_fix_get_fixup_free(fixup_function f);
int fixup_vstr_all(void** param, int param_no);
int fixup_free_vstr_all(void** param, int param_no);
-int fixup_get_vstr_buf(sip_msg_t *msg, gparam_t *p, char *buf, int blen);
+int fixup_get_vstr_buf(sip_msg_t *msg, pv_elem_t *p, char *buf, int blen);
#endif