rem: if (pidf_add_address(&body, BUF_LEN - body.len, &_p->uri, st, &_p->location) < 0) {
add: if (pidf_add_address(&body, BUF_LEN - body.len, &_p->uri, st) < 0) {
context: static inline int send_pidf_notify(struct presentity* _p, struct watcher* _w){	xpidf_status_t st;	     /* Send a notify, saved Contact will be put in	      * Request-URI, To will be put in from and new tag	      * will be generated, callid will be callid,	      * from will be put in to including tag	      */	if (start_pidf_doc(&body, BUF_LEN) < 0) {		LOG(L_ERR, "send_pidf_notify(): start_pidf_doc failed\n");		return -1;	}	if (pidf_add_presentity(&body, BUF_LEN - body.len, &_p->uri) < 0) {		LOG(L_ERR, "send_pidf_notify(): pidf_add_presentity failed\n");		return -3;	}	if (start_pidf_tuple(&body, BUF_LEN - body.len) < 0) {		LOG(L_ERR, "send_pidf_notify(): start_pidf_tuple failed\n");		return -4;	}	switch(_p->state) {	case PS_ONLINE: st = XPIDF_ST_OPEN; break;	default: st = XPIDF_ST_CLOSED; break;	}	if (pidf_add_address(&body, BUF_LEN - body.len, &_p->uri, st, &_p->location) < 0) {		LOG(L_ERR, "send_pidf_notify(): pidf_add_address failed\n");		return -3;	}	if (end_pidf_tuple(&body, BUF_LEN - body.len) < 0) {		LOG(L_ERR, "send_pidf_notify(): end_pidf_tuple failed\n");		return -4;	}	if (end_pidf_doc(&body, BUF_LEN - body.len) < 0) {		LOG(L_ERR, "send_pidf_notify(): end_xpidf_doc failed\n");		return -5;	}	if (create_headers(_w) < 0) {		LOG(L_ERR, "send_pidf_notify(): Error while adding headers\n");		return -6;	}	tmb.t_request_within(&method, &headers, &body, _w->dialog, 0, 0);	return 0;}