rem: int i;
add: int i, cnt;
context: static void add_virtual_subscriptions_documents(dstring_t *doc, 		rl_subscription_t *s, const char *boundary_str, const char *part_id){	int i;	virtual_subscription_t *vs;	char tmp[32];	/* add all list elements */	vs = s->first_vs;	i = 0;	while (vs) {		if (vs->state_document.len < 1) {			i++;			vs = vs->next;			continue;		}		if (vs->content_type.len < 1) {			LOG(L_ERR, "can't send resource status document for unknown type\n");			vs = vs->next;			i++;			continue;		}		dstr_append(doc, "--", 2);		dstr_append_zt(doc, boundary_str);		dstr_append(doc, "\r\n", 2);		sprintf(tmp, "%d", i);		dstr_append_zt(doc, "Content-Transfer-Encoding: binary\r\nContent-ID: ");		dstr_append_zt(doc, part_id);		dstr_append_zt(doc, tmp);		dstr_append_zt(doc, "\r\nContent-Type: ");		dstr_append_str(doc, &vs->content_type);		dstr_append_zt(doc, "\r\n\r\n");		dstr_append_str(doc, &vs->state_document);		dstr_append(doc, "\r\n", 2);		vs = vs->next;		i++;	}		}