/* Set the number of stop bits in the termios structure.  */
static void native_tty_stop_bits_set(struct termios *ter, enum native_tty_bottom_stop_bits stop_bits)
/* Set the number of stop bits in the termios structure.  */
static void native_tty_stop_bits_set(struct termios *ter, enum native_tty_bottom_stop_bits stop_bits)
{
	switch (stop_bits) {
	case NTB_STOP_BITS_1:
		ter->c_cflag &= ~CSTOPB;
		break;
	case NTB_STOP_BITS_2:
		ter->c_cflag |= CSTOPB;
		break;
	default:
		ERROR("Could not set number of data bits.\n");
	}
}