diff --git a/action.c b/action.c index 88b1df42c23..919ff8db2fa 100644 --- a/action.c +++ b/action.c @@ -830,7 +830,7 @@ int do_action(struct action* a, struct sip_msg* msg) script_trace("core", "xdbg", msg, a->file, a->line) ; if (a->elem[0].type == SCRIPTVAR_ELEM_ST) { - ret = xdbg(msg, a->elem[0].u.data, val.rs.s); + ret = xdbg(msg, a->elem[0].u.data); if (ret < 0) { LM_ERR("error while printing xdbg message\n"); @@ -874,7 +874,7 @@ int do_action(struct action* a, struct sip_msg* msg) ret=E_BUG; break; } - ret = xlog_1(msg,a->elem[0].u.data, val.rs.s); + ret = xlog_1(msg,a->elem[0].u.data); if (ret < 0) { LM_ERR("error while printing xlog message\n"); diff --git a/xlog.c b/xlog.c index 71732c9c7ce..3134355ec6e 100644 --- a/xlog.c +++ b/xlog.c @@ -314,7 +314,7 @@ int xlog_2(struct sip_msg* msg, char* lev, char* frm) } -int xlog_1(struct sip_msg* msg, char* frm, char* str2) +int xlog_1(struct sip_msg* msg, char* frm) { int log_len, ret; @@ -342,7 +342,7 @@ int xlog_1(struct sip_msg* msg, char* frm, char* str2) /** */ -int xdbg(struct sip_msg* msg, char* frm, char* str2) +int xdbg(struct sip_msg* msg, char* frm) { int log_len, ret; diff --git a/xlog.h b/xlog.h index 4a26a633a1b..f5aaa6ec5cf 100644 --- a/xlog.h +++ b/xlog.h @@ -45,9 +45,9 @@ extern int xlog_force_color; extern int xlog_print_level; extern int *xlog_level; -int xlog_1(struct sip_msg*, char*, char*); +int xlog_1(struct sip_msg*, char*); int xlog_2(struct sip_msg*, char*, char*); -int xdbg(struct sip_msg*, char*, char*); +int xdbg(struct sip_msg*, char*); int pv_parse_color_name(pv_spec_p sp, str *in); int pv_get_color(struct sip_msg *msg, pv_param_t *param,