From 73e36b6a467491252e1f81be1b8da66d6c1a4b1b Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Wed, 30 Oct 2019 18:25:44 +0100 Subject: [PATCH] core: use pv_elem_t for vstr fixup value get --- src/core/mod_fix.c | 4 ++-- src/core/mod_fix.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/mod_fix.c b/src/core/mod_fix.c index ca2cd6c104f..49dbb44f1f3 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 f09cf59e0cb..29d937a261d 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