Undo all of the ugliness and some of the bloat from 15412.

This commit is contained in:
Rob Landley
2006-06-18 23:59:03 +00:00
parent ea224be6aa
commit 290fcb4213
4 changed files with 22 additions and 146 deletions

View File

@ -1190,7 +1190,7 @@ static void display_speed(struct termios *mode, int fancy)
if (fancy) {
fmt_str += 9;
}
wrapf(fmt_str, bb_baud_to_value(ispeed), bb_baud_to_value(ospeed));
wrapf(fmt_str, tty_baud_to_value(ispeed), tty_baud_to_value(ospeed));
if (!fancy)
current_col = 0;
}
@ -1239,7 +1239,7 @@ static int recover_mode(char *arg, struct termios *mode)
static speed_t string_to_baud(const char *arg)
{
return bb_value_to_baud(bb_xparse_number(arg, 0));
return tty_value_to_baud(bb_xparse_number(arg, 0));
}
static void sane_mode(struct termios *mode)