summaryrefslogtreecommitdiff
path: root/coreutils/stty.c
diff options
context:
space:
mode:
authorRob Landley2006-06-18 23:59:03 +0000
committerRob Landley2006-06-18 23:59:03 +0000
commit290fcb4213ae5ab9ec6cb228dd64ef2c9f02d26d (patch)
tree083c3dad70b970ba65848de929fbb8d4b738676a /coreutils/stty.c
parentea224be6aa8fed5486376d3021a4cb911e935106 (diff)
downloadbusybox-290fcb4213ae5ab9ec6cb228dd64ef2c9f02d26d.zip
busybox-290fcb4213ae5ab9ec6cb228dd64ef2c9f02d26d.tar.gz
Undo all of the ugliness and some of the bloat from 15412.
Diffstat (limited to 'coreutils/stty.c')
-rw-r--r--coreutils/stty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c
index cfb7f7f..b78368e 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -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)