Ver código fonte

modules/xprint: updated use of get_branch() and next_branch() to cope with additional argument

Peter Dunkley 12 anos atrás
pai
commit
0137a2a91d
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      modules/xprint/xp_lib.c

+ 3 - 3
modules/xprint/xp_lib.c

@@ -700,7 +700,7 @@ static int xl_get_branch(struct sip_msg *msg, str *res, str *hp, int hi, int hf)
 
 
 
 
 	init_branch_iterator();
 	init_branch_iterator();
-	branch.s = next_branch(&branch.len, &q, 0, 0, 0, 0);
+	branch.s = next_branch(&branch.len, &q, 0, 0, 0, 0, 0);
 	if (!branch.s) {
 	if (!branch.s) {
 		return xl_get_null(msg, res, hp, hi, hf);
 		return xl_get_null(msg, res, hp, hi, hf);
 	}
 	}
@@ -731,7 +731,7 @@ static int xl_get_branches(struct sip_msg *msg, str *res, str *hp, int hi, int h
 	cnt = len = 0;
 	cnt = len = 0;
 
 
 	init_branch_iterator();
 	init_branch_iterator();
-	while ((uri.s = next_branch(&uri.len, &q, 0, 0, 0, 0)))
+	while ((uri.s = next_branch(&uri.len, &q, 0, 0, 0, 0, 0)))
 	{
 	{
 		cnt++;
 		cnt++;
 		len += uri.len;
 		len += uri.len;
@@ -756,7 +756,7 @@ static int xl_get_branches(struct sip_msg *msg, str *res, str *hp, int hi, int h
 	p = local_buf;
 	p = local_buf;
 
 
 	init_branch_iterator();
 	init_branch_iterator();
-	while ((uri.s = next_branch(&uri.len, &q, 0, 0, 0, 0)))
+	while ((uri.s = next_branch(&uri.len, &q, 0, 0, 0, 0, 0)))
 	{
 	{
 		if (i)
 		if (i)
 		{
 		{