Skip to content

Commit

Permalink
xlog(): Remove unused function parameter
Browse files Browse the repository at this point in the history
(cherry picked from commit b95c2ed)
  • Loading branch information
liviuchircu committed Dec 9, 2020
1 parent 6f6aa0e commit 29d3fb3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions action.c
Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions xlog.c
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions xlog.h
Expand Up @@ -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,
Expand Down

0 comments on commit 29d3fb3

Please sign in to comment.