Sfoglia il codice sorgente

core: use pv_elem_t for vstr fixup value get

Daniel-Constantin Mierla 5 anni fa
parent
commit
73e36b6a46
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 2 2
      src/core/mod_fix.c
  2. 1 1
      src/core/mod_fix.h

+ 2 - 2
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;
 	}

+ 1 - 1
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