Browse code

core: use pv_elem_t for vstr fixup value get

(cherry picked from commit 73e36b6a467491252e1f81be1b8da66d6c1a4b1b)

Daniel-Constantin Mierla authored on 30/10/2019 17:25:44
Showing 2 changed files
... ...
@@ -747,9 +747,9 @@ int fixup_free_vstr_all(void** param, int param_no)
747 747
 /**
748 748
  *
749 749
  */
750
-int fixup_get_vstr_buf(sip_msg_t *msg, gparam_t *p, char *buf, int blen)
750
+int fixup_get_vstr_buf(sip_msg_t *msg, pv_elem_t *p, char *buf, int blen)
751 751
 {
752
-	if(pv_printf(msg, (pv_elem_t*)p, buf, &blen)<0) {
752
+	if(pv_printf(msg, p, buf, &blen)<0) {
753 753
 		LM_ERR("unable to get the value\n");
754 754
 		return -1;
755 755
 	}
... ...
@@ -158,5 +158,5 @@ free_fixup_function mod_fix_get_fixup_free(fixup_function f);
158 158
 
159 159
 int fixup_vstr_all(void** param, int param_no);
160 160
 int fixup_free_vstr_all(void** param, int param_no);
161
-int fixup_get_vstr_buf(sip_msg_t *msg, gparam_t *p, char *buf, int blen);
161
+int fixup_get_vstr_buf(sip_msg_t *msg, pv_elem_t *p, char *buf, int blen);
162 162
 #endif