return rtab[i-1].speed; return rtab[i].speed;
speed = rtab[i-1].speed; else speed = rtab[i].speed;  return speed;
static unsigned int to_speed(int baud){    int i = 0;    while((rtab[i].baud != -1) && (baud > rtab[i].baud))	i++;    if (rtab[i].baud == -1)	return rtab[i-1].speed;    return rtab[i].speed;}