aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-10-20 19:40:20 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-10-20 19:53:24 +0200
commite707a3000b2f6e2f684b6e85cd60590318d157c4 (patch)
tree64b5f0d559930dee2107aefcd88c593732973c52
parenta4e4a654846dfc4c1b4b080ad850b223da1a886c (diff)
downloadbusybox-w32-e707a3000b2f6e2f684b6e85cd60590318d157c4.tar.gz
busybox-w32-e707a3000b2f6e2f684b6e85cd60590318d157c4.tar.bz2
busybox-w32-e707a3000b2f6e2f684b6e85cd60590318d157c4.zip
add B921600
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--libbb/speed_table.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbb/speed_table.c b/libbb/speed_table.c
index 05fe66c64..af676e1eb 100644
--- a/libbb/speed_table.c
+++ b/libbb/speed_table.c
@@ -51,6 +51,9 @@ static const struct speed_map speeds[] = {
51#ifdef B460800 51#ifdef B460800
52 {B460800, 460800/256 + 0x8000U}, 52 {B460800, 460800/256 + 0x8000U},
53#endif 53#endif
54#ifdef B921600
55 {B921600, 921600/256 + 0x8000U},
56#endif
54}; 57};
55 58
56enum { NUM_SPEEDS = ARRAY_SIZE(speeds) }; 59enum { NUM_SPEEDS = ARRAY_SIZE(speeds) };
@@ -93,7 +96,7 @@ int main(void)
93 unsigned long v; 96 unsigned long v;
94 speed_t s; 97 speed_t s;
95 98
96 for (v = 0 ; v < 500000; v++) { 99 for (v = 0 ; v < 1000000; v++) {
97 s = tty_value_to_baud(v); 100 s = tty_value_to_baud(v);
98 if (s == (speed_t) -1) { 101 if (s == (speed_t) -1) {
99 continue; 102 continue;