Module: kamailio Branch: 5.1 Commit: f908daef33abdec7111f704d40b3acc3568bfbd5 URL: https://github.com/kamailio/kamailio/commit/f908daef33abdec7111f704d40b3acc3568bfbd5
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2020-02-10T13:36:04+01:00 core: use pv_elem_t for vstr fixup value get (cherry picked from commit 73e36b6a467491252e1f81be1b8da66d6c1a4b1b) --- Modified: src/core/mod_fix.c Modified: src/core/mod_fix.h --- Diff: https://github.com/kamailio/kamailio/commit/f908daef33abdec7111f704d40b3acc3568bfbd5.diff Patch: https://github.com/kamailio/kamailio/commit/f908daef33abdec7111f704d40b3acc3568bfbd5.patch --- diff --git a/src/core/mod_fix.c b/src/core/mod_fix.c index 93256affc3..1a489bc365 100644 --- a/src/core/mod_fix.c +++ b/src/core/mod_fix.c @@ -715,9 +715,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 5afb2c8a56..5884fb263c 100644 --- a/src/core/mod_fix.h +++ b/src/core/mod_fix.h @@ -151,5 +151,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 _______________________________________________ Kamailio (SER) - Development Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
