rem: int len, cnt, i, qlen;
add: int len, cnt, i; unsigned int qlen;
context: static int xl_get_branches(struct sip_msg *msg, str *res, str *hp, int hi){	str uri;	qvalue_t q;	int len, cnt, i, qlen;	char *p, *qbuf;	if(msg==NULL || res==NULL)		return -1;	if(msg->first_line.type == SIP_REPLY)		return xl_get_null(msg, res, hp, hi);  	cnt = len = 0;	init_branch_iterator();	while ((uri.s = next_branch(&uri.len, &q, 0, 0, 0)))	{		cnt++;		len += uri.len;		if (q != Q_UNSPECIFIED)		{			len += 1 + Q_PARAM_LEN + len_q(q);		}	}	if (cnt == 0)		return xl_get_empty(msg, res, hp, hi);   	len += (cnt - 1) * XLOG_FIELD_DELIM_LEN;	if (len + 1 > LOCAL_BUF_SIZE)	{		LOG(L_ERR, "ERROR:xl_get_branches: local buffer length exceeded\n");		return xl_get_null(msg, res, hp, hi);	}	i = 0;	p = local_buf;	init_branch_iterator();	while ((uri.s = next_branch(&uri.len, &q, 0, 0, 0)))	{		if (i)		{			memcpy(p, XLOG_FIELD_DELIM, XLOG_FIELD_DELIM_LEN);			p += XLOG_FIELD_DELIM_LEN;		}		if (q != Q_UNSPECIFIED)		{			*p++ = '<';		}		memcpy(p, uri.s, uri.len);		p += uri.len;		if (q != Q_UNSPECIFIED)		{			memcpy(p, Q_PARAM, Q_PARAM_LEN);			p += Q_PARAM_LEN;			qbuf = q2str(q, &qlen);			memcpy(p, qbuf, qlen);			p += qlen;		}		i++;	}	res->s = &(local_buf[0]);	res->len = len;	return 0;}