Mercurial > ecos
changeset 2017:024bed9cc2c8
* src/common/termiostty.c: Removed errbuf from priv. It was never
being used after being allocated and never freed.
| author | asl |
|---|---|
| date | Thu, 21 Jul 2005 18:00:47 +0000 |
| parents | 90d7cdcd7787 |
| children | 975b261a7619 |
| files | packages/io/serial/current/ChangeLog packages/io/serial/current/src/common/termiostty.c |
| diffstat | 2 files changed, 5 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/io/serial/current/ChangeLog +++ b/packages/io/serial/current/ChangeLog @@ -1,3 +1,8 @@ +2005-07-21 Andrew Lunn <andrew.lunn@ascom.ch> + + * src/common/termiostty.c: Removed errbuf from priv. It was never + being used after being allocated and never freed. + 2005-06-27 Andrew Lunn <andrew.lunn@ascom.ch> * src/common/serial.c (serial_select): Swap the DSR locks and
--- a/packages/io/serial/current/src/common/termiostty.c +++ b/packages/io/serial/current/src/common/termiostty.c @@ -107,9 +107,6 @@ struct termios_private_info { cyg_io_handle_t dev_handle; cyg_drv_mutex_t lock; cyg_bool init; - cyg_uint8 *errbuf; - cyg_uint8 *errbufpos; - cyg_uint32 errbufsize; }; typedef struct { @@ -256,12 +253,6 @@ real_termios_init( struct termios_privat &dev_buf_conf, &len ); } - priv->errbuf = (cyg_uint8 *)malloc( dev_buf_conf.rx_bufsize ); - if ( NULL == priv->errbuf ) - res = ENOMEM; // FIXME: Are we allowed to do this? - priv->errbufpos = priv->errbuf; - priv->errbufsize = dev_buf_conf.rx_bufsize; - if ( ENOERR != res ) { CYG_REPORT_RETVAL( res ); return res;
