This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: Fix serial_select() prototype
- From: Eric Doenges <Eric dot Doenges at DynaPel dot com>
- To: Jonathan Larmour <jlarmour at jifvik dot org>
- Cc: ecos-patches at sources dot redhat dot com
- Date: Tue, 02 Sep 2003 08:47:10 +0200
- Subject: Re: Fix serial_select() prototype
- References: <200309020317.h823H8x22003@garibaldi.jifvik.org.>
Jonathan Larmour wrote:
[ patch for serial_select() snipped for brevity ]
The same problem also exists in tty.c and termiostty.c; here is a patch
that should correct those files as well.
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/serial/current/ChangeLog,v
retrieving revision 1.54
diff -u -5 -p -b -r1.54 ChangeLog
--- ChangeLog 2 Sep 2003 03:17:21 -0000 1.54
+++ ChangeLog 2 Sep 2003 06:37:39 -0000
@@ -1,5 +1,10 @@
+2003-09-02 Eric Doenges <Eric.Doenges@DynaPel.com>
+ * src/common/tty.c: Make tty_select prototype match implementation.
+ * src/common/termiostty.c: Make termios_select prototype match
+ implementation.
+
2003-09-02 Jonathan Larmour <jifl@eCosCentric.com>
* src/common/serial.c: Make serial_select prototype match
implementation.
Index: src/common/termiostty.c
===================================================================
RCS file:
/cvs/ecos/ecos/packages/io/serial/current/src/common/termiostty.c,v
retrieving revision 1.5
diff -u -5 -p -b -r1.5 termiostty.c
--- src/common/termiostty.c 20 Mar 2003 19:03:03 -0000 1.5
+++ src/common/termiostty.c 2 Sep 2003 06:37:39 -0000
@@ -88,11 +88,11 @@ termios_lookup(struct cyg_devtab_entry *
const char *name);
static Cyg_ErrNo
termios_write(cyg_io_handle_t handle, const void *buf, cyg_uint32 *len);
static Cyg_ErrNo
termios_read(cyg_io_handle_t handle, void *buf, cyg_uint32 *len);
-static Cyg_ErrNo
+static cyg_bool
termios_select(cyg_io_handle_t handle, cyg_uint32 which, CYG_ADDRWORD
info);
static Cyg_ErrNo
termios_get_config(cyg_io_handle_t handle, cyg_uint32 key, void *buf,
cyg_uint32 *len);
static Cyg_ErrNo
Index: src/common/tty.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/serial/current/src/common/tty.c,v
retrieving revision 1.10
diff -u -5 -p -b -r1.10 tty.c
--- src/common/tty.c 10 Dec 2002 15:29:02 -0000 1.10
+++ src/common/tty.c 2 Sep 2003 06:37:39 -0000
@@ -62,11 +62,11 @@ static bool tty_init(struct cyg_devtab_e
static Cyg_ErrNo tty_lookup(struct cyg_devtab_entry **tab,
struct cyg_devtab_entry *sub_tab,
const char *name);
static Cyg_ErrNo tty_write(cyg_io_handle_t handle, const void *buf,
cyg_uint32
*len);
static Cyg_ErrNo tty_read(cyg_io_handle_t handle, void *buf,
cyg_uint32 *len);
-static Cyg_ErrNo tty_select(cyg_io_handle_t handle, cyg_uint32 which,
CYG_ADDRW
ORD info);
+static cyg_bool tty_select(cyg_io_handle_t handle, cyg_uint32 which,
CYG_ADDRW
ORD info);
static Cyg_ErrNo tty_get_config(cyg_io_handle_t handle, cyg_uint32
key, void *b
uf, cyg_uint32 *len);
static Cyg_ErrNo tty_set_config(cyg_io_handle_t handle, cyg_uint32
key, const v
oid *buf, cyg_uint32 *len);
struct tty_private_info {
cyg_tty_info_t dev_info;
--
--------------------------------------------------------------------
| Eric Doenges | DynaPel Laboratories GmbH |
| Tel: +49 89 962428 23 | Fraunhoferstrasse 9/2 |
| Fax: +49 89 962428 90 | D - 85737 Ismaning, Germany |
--------------------------------------------------------------------