[git commit master] add B921600

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue Oct 20 17:53:24 UTC 2009


commit: http://git.busybox.net/busybox/commit/?id=e707a3000b2f6e2f684b6e85cd60590318d157c4
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 libbb/speed_table.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/libbb/speed_table.c b/libbb/speed_table.c
index 05fe66c..af676e1 100644
--- a/libbb/speed_table.c
+++ b/libbb/speed_table.c
@@ -51,6 +51,9 @@ static const struct speed_map speeds[] = {
 #ifdef B460800
 	{B460800, 460800/256 + 0x8000U},
 #endif
+#ifdef B921600
+	{B921600, 921600/256 + 0x8000U},
+#endif
 };
 
 enum { NUM_SPEEDS = ARRAY_SIZE(speeds) };
@@ -93,7 +96,7 @@ int main(void)
 	unsigned long v;
 	speed_t s;
 
-	for (v = 0 ; v < 500000; v++) {
+	for (v = 0 ; v < 1000000; v++) {
 		s = tty_value_to_baud(v);
 		if (s == (speed_t) -1) {
 			continue;
-- 
1.6.3.3



More information about the busybox-cvs mailing list