aboutsummaryrefslogtreecommitdiff
path: root/coreutils/stty.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-06-18 23:59:03 +0000
committerRob Landley <rob@landley.net>2006-06-18 23:59:03 +0000
commit290fcb4213ae5ab9ec6cb228dd64ef2c9f02d26d (patch)
tree083c3dad70b970ba65848de929fbb8d4b738676a /coreutils/stty.c
parentea224be6aa8fed5486376d3021a4cb911e935106 (diff)
downloadbusybox-w32-290fcb4213ae5ab9ec6cb228dd64ef2c9f02d26d.tar.gz
busybox-w32-290fcb4213ae5ab9ec6cb228dd64ef2c9f02d26d.tar.bz2
busybox-w32-290fcb4213ae5ab9ec6cb228dd64ef2c9f02d26d.zip
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 cfb7f7f39..b78368e7b 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -1190,7 +1190,7 @@ static void display_speed(struct termios *mode, int fancy)
1190 if (fancy) { 1190 if (fancy) {
1191 fmt_str += 9; 1191 fmt_str += 9;
1192 } 1192 }
1193 wrapf(fmt_str, bb_baud_to_value(ispeed), bb_baud_to_value(ospeed)); 1193 wrapf(fmt_str, tty_baud_to_value(ispeed), tty_baud_to_value(ospeed));
1194 if (!fancy) 1194 if (!fancy)
1195 current_col = 0; 1195 current_col = 0;
1196} 1196}
@@ -1239,7 +1239,7 @@ static int recover_mode(char *arg, struct termios *mode)
1239 1239
1240static speed_t string_to_baud(const char *arg) 1240static speed_t string_to_baud(const char *arg)
1241{ 1241{
1242 return bb_value_to_baud(bb_xparse_number(arg, 0)); 1242 return tty_value_to_baud(bb_xparse_number(arg, 0));
1243} 1243}
1244 1244
1245static void sane_mode(struct termios *mode) 1245static void sane_mode(struct termios *mode)