changeset 456:2842412ce230

Fix return value for tty write - don't count expanded chars.
author gthomas
date Tue, 10 Dec 2002 15:29:00 +0000
parents 1287356aa9e5
children a3677f97d816
files packages/io/serial/current/ChangeLog packages/io/serial/current/src/common/tty.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/serial/current/ChangeLog
+++ b/packages/io/serial/current/ChangeLog
@@ -1,3 +1,9 @@
+2002-12-10  Gary Thomas  <gthomas@ecoscentric.com>
+
+	* src/common/tty.c (tty_write): Only return number of characters
+	in original string which were written - don't include any CR/LF
+	expansion characters.
+
 2002-04-23  Jesper Skov  <jskov@redhat.com>
 
 	* tests/serial3.c (serial_test): Use 19200 baud rate when board
--- a/packages/io/serial/current/src/common/tty.c
+++ b/packages/io/serial/current/src/common/tty.c
@@ -195,7 +195,6 @@ tty_write(cyg_io_handle_t handle, const 
             size = 0;
         }
     }
-    *len = actually_written;
     return res;
 }