This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
prototype mismatches in packages/io/serial/current/src/common
- From: Kevin Hilman <khilman at equator dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: 05 Nov 2003 11:21:52 -0800
- Subject: prototype mismatches in packages/io/serial/current/src/common
- Organization: Equator Technologies, Inc.
There are a few functions in packages/io/serial/current/src/common
that have prototype mismatches within the file the cause the compiler
for out port (to the Equator BSP architecture) to fail.
- tty.c: tty_select()
- serial.c: serial_select()
The declaration uses Cyg_Errno as the return value and the definition
uses cyg_bool. It looks like they both should be cyg_bool. The
attached patches fix this mismatch.
Kevin Hilman
Equator Technologies
Index: packages/io/serial/current/src/common/serial.c
===================================================================
RCS file: /cvsroot/ext/ecos/packages/io/serial/current/src/common/serial.c,v
retrieving revision 1.4
diff -c -r1.4 serial.c
*** packages/io/serial/current/src/common/serial.c 5 Nov 2003 18:33:23 -0000 1.4
--- packages/io/serial/current/src/common/serial.c 5 Nov 2003 19:10:33 -0000
***************
*** 500,506 ****
// ---------------------------------------------------------------------------
! static Cyg_ErrNo
serial_select(cyg_io_handle_t handle, cyg_uint32 which, CYG_ADDRWORD info)
{
#ifdef CYGPKG_IO_SERIAL_SELECT_SUPPORT
--- 500,506 ----
// ---------------------------------------------------------------------------
! static cyg_bool
serial_select(cyg_io_handle_t handle, cyg_uint32 which, CYG_ADDRWORD info)
{
#ifdef CYGPKG_IO_SERIAL_SELECT_SUPPORT
Index: packages/io/serial/current/src/common/serial.c
===================================================================
RCS file: /cvsroot/ext/ecos/packages/io/serial/current/src/common/serial.c,v
retrieving revision 1.4
diff -c -r1.4 serial.c
*** packages/io/serial/current/src/common/serial.c 5 Nov 2003 18:33:23 -0000 1.4
--- packages/io/serial/current/src/common/serial.c 5 Nov 2003 19:10:50 -0000
***************
*** 500,506 ****
// ---------------------------------------------------------------------------
! static Cyg_ErrNo
serial_select(cyg_io_handle_t handle, cyg_uint32 which, CYG_ADDRWORD info)
{
#ifdef CYGPKG_IO_SERIAL_SELECT_SUPPORT
--- 500,506 ----
// ---------------------------------------------------------------------------
! static cyg_bool
serial_select(cyg_io_handle_t handle, cyg_uint32 which, CYG_ADDRWORD info)
{
#ifdef CYGPKG_IO_SERIAL_SELECT_SUPPORT