rem: }
add: }*/
context: static inline int safe_write(struct peer *p, char *buf, unsigned int len){	int n;	for(n=0;n<len;n++) {		DBG(" %x",buf[n]);		if ((n&7)==0)			DBG("\n");	}	while( (n=write(p->sock,buf,len))==-1 ) {		if (errno==EINTR)			continue;		LOG(L_ERR,"ERROR:safe_write: write returned error: %s\n",			strerror(errno));		p->state = PEER_ERROR;		close_peer( p );		return -1;	}	if (n!=len) {		LOG(L_CRIT,"ERROR:safe_write: BUG!!! write gave no error but wrote"			" less than asked\n");		p->state = PEER_ERROR;		close_peer( p );	}	return 1;}