mesh_driver/lunix-attach.c
static int tty_find_speed(const char *speed)
{
	int i;

	i = 0;
	while (tty_speeds[i].speed != NULL) {
		if (!strcmp(tty_speeds[i].speed, speed)) return(tty_speeds[i].code);
		i++;
	}

	return -EINVAL;
}
/* Find a serial speed code in the table. */
Find a serial speed code in the table.
Find a serial speed code in the table .
static int tty_find_speed(const char *speed)
{
	int i;
	i = 0;
	while (tty_speeds[i].speed != NULL) {
		if (!strcmp(tty_speeds[i].speed, speed)) return(tty_speeds[i].code);
		i++;
	}
	return -EINVAL;
}
static int tty_find_speed ( const char * speed ) { int i ; i = 0 ; while ( tty_speeds [ i ] . speed != NULL ) { if ( ! strcmp ( tty_speeds [ i ] . speed , speed ) ) return ( tty_speeds [ i ] . code ) ; i ++ ; } return - EINVAL ; }
Find a serial speed code in the table.
Find a serial speed code in the table .