This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

network test programs pathces


Hi Folks.

I just commited the following patch to the common network test
programs. These programs are not compiled by default, you have to
enable them with CYGPKG_NET_TESTS

multi_lo_select.c: When using the fileio package, you need to include
pkgconf/io_fileio.h otherwise the macro CYGNUM_FILEIO_NFD is not
known.

tcp_echo.c: Both it and lib/libkern/libkern.h define a static inline
function max. They are defined differently which the compile does not
like and gives an error.

     Andrew

lunn@cobra:~/lhome/ecos/packages/net/common/current$ cvs diff
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/common/current/ChangeLog,v
retrieving revision 1.12
diff -u -r1.12 ChangeLog
--- ChangeLog   17 Aug 2002 00:03:03 -0000      1.12
+++ ChangeLog   6 Oct 2002 13:02:31 -0000
@@ -1,3 +1,9 @@
+2002-10-06  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+       * tests/multi_lo_select.c: Need the io_fileio.h header file
+       * tests/tcp_echo.c: (max): definition clashes with the one in
+       the header file lib/libkern/libkern.h
+
 2002-08-16  Gary Thomas  <gthomas@ecoscentric.com> (on behalf of)
 2002-08-16  Louis Hamilton <hamilton@redhat.com>

Index: tests/multi_lo_select.c
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/common/current/tests/multi_lo_select.c,v
retrieving revision 1.1
diff -u -r1.1 multi_lo_select.c
--- tests/multi_lo_select.c     20 May 2002 22:25:05 -0000      1.1
+++ tests/multi_lo_select.c     6 Oct 2002 13:02:31 -0000
@@ -87,6 +87,7 @@
 #define NLISTENERS (CYGPKG_IO_NFILE/3)
 #endif
 #else
+#include <pkgconf/io_fileio.h>
 #if CYGNUM_FILEIO_NFD > 30
 #define NLISTENERS 10
 #else
Index: tests/tcp_echo.c
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/common/current/tests/tcp_echo.c,v
retrieving revision 1.2
diff -u -r1.2 tcp_echo.c
--- tests/tcp_echo.c    31 May 2002 01:05:55 -0000      1.2
+++ tests/tcp_echo.c    6 Oct 2002 13:02:31 -0000
@@ -67,8 +67,8 @@

 #include <network.h>

-static __inline__ int
-max(int m, int n)
+static __inline__ unsigned int
+max(unsigned int m, unsigned int n)
 {
     return m > n ? m : n;
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]