rem: inline int get_cmd( int fd, str *cmd)
add: static int get_cmd( int fd, str *cmd)
context: inline int get_cmd( int fd, str *cmd){	static char buffer[BUFFER_SIZE];	int cmd_type;	int cmd_len;	int  len;	/* get command header */	len = read_n( fd, HEADER_SIZE , buffer);	if (len<HEADER_SIZE) {		LOG(L_ERR,"ERROR:extcmd:get_cmd: cannot read command's header: %s \n",			len<0?strerror(len):"incomplet string");		return NO_CMD;	}	/* decode command header */	cmd_type = get_int_n2h( buffer, TYPE_LEN);	cmd_len = get_int_n2h( buffer+TYPE_LEN, LEN_LEN);	DBG("DEBUG:extcmd:get_cmd: type=%d, len=%d \n",cmd_type, cmd_len);	/* read the command body */	len = read_n( fd, cmd_len , buffer);	if (len<cmd_len) {		LOG(L_ERR,"ERROR:extcmd:get_cmd: cannot read command's body: %s \n",			len<0?strerror(len):"incomplet string");		return NO_CMD;	}	DBG("DEBUG:extcmd:get_cmd: command = [%.*s]\n",cmd_len,buffer);	/* return the command body */	cmd->s = buffer;	cmd->len = cmd_len;	return cmd_type;}