rem: parse_to(_p->uri.s, _p->uri.s + _p->uri.len, &parsed); if (parsed.error == PARSE_ERROR) { LOG(L_ERR, "send_lpidf_notify(): Error while parsing\n"); return -1; }  len = BUF_LEN - body.len; if (lpidf_add_presentity(&body, &len, &parsed.uri) < 0) {
add: if (lpidf_add_presentity(&body, BUF_LEN - body.len, &_p->uri) < 0) { LOG(L_ERR, "send_lpidf_notify(): Error in lpidf_add_presentity\n");
context: static inline int send_lpidf_notify(struct presentity* _p, struct watcher* _w){	lpidf_status_t st;	struct to_body parsed;	int len;	parse_to(_p->uri.s, _p->uri.s + _p->uri.len, &parsed);	if (parsed.error == PARSE_ERROR) {		LOG(L_ERR, "send_lpidf_notify(): Error while parsing\n");		return -1;	}	len = BUF_LEN - body.len;	if (lpidf_add_presentity(&body, &len, &parsed.uri) < 0) {		return -2;	}	switch(_p->state) {	case PS_OFFLINE: st = LPIDF_ST_CLOSED; break;	default: st = LPIDF_ST_OPEN; break;	}	len = BUF_LEN - body.len;	if (lpidf_add_address(&body, &len, &parsed.uri, st) < 0) {		return -3;	}	if (create_headers(_w) < 0) {		LOG(L_ERR, "send_lpidf_notify(): Error while adding headers\n");		return -4;	}	tmb.t_request_within(&method, &headers, &body, _w->dialog, 0, 0);	return 0;}