Hi Folks

Here is a patch which fixes the compiler warning in the net test
nc_test_master.

        Andrew

? tests/nc_test_master
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/common/current/ChangeLog,v
retrieving revision 1.75
diff -u -r1.75 ChangeLog
--- ChangeLog   5 Mar 2006 12:48:37 -0000       1.75
+++ ChangeLog   26 Mar 2006 11:14:54 -0000
@@ -1,3 +1,9 @@
+2006-03-26  Andrew Lunn  <[EMAIL PROTECTED]>
+
+       * tests/nc_test_framework.h: 
+       * tests/nc_test_master.c: Fix the compiler warnings when
+       building for Linux.
+
 2006-02-27     Jay Foster   <[EMAIL PROTECTED]>
 
        * src/dhcp_prot.c: Updated set_fixed_tag(), set_variable_tag(),
Index: tests/nc_test_framework.h
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/common/current/tests/nc_test_framework.h,v
retrieving revision 1.4
diff -u -r1.4 nc_test_framework.h
--- tests/nc_test_framework.h   23 Apr 2003 23:48:57 -0000      1.4
+++ tests/nc_test_framework.h   26 Mar 2006 11:14:54 -0000
@@ -47,6 +47,7 @@
 #include <netinet/in.h>
 #include <netinet/ip.h>
 #include <netinet/ip_icmp.h>
+#include <string.h>
 
 #include <netdb.h>
 #ifndef EAI_NONE
@@ -58,6 +59,7 @@
 #define test_printf diag_printf
 typedef cyg_addrword_t test_param_t;
 #else
+#include <stdio.h>
 #define test_printf printf
 typedef void *test_param_t;
 #endif
Index: tests/nc_test_master.c
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/common/current/tests/nc_test_master.c,v
retrieving revision 1.2
diff -u -r1.2 nc_test_master.c
--- tests/nc_test_master.c      23 Oct 2005 20:48:07 -0000      1.2
+++ tests/nc_test_master.c      26 Mar 2006 11:14:55 -0000
@@ -66,6 +66,7 @@
 extern void
 cyg_test_exit(void);
 #else
+#include <stdlib.h>
 void
 cyg_test_exit(void)
 {

Reply via email to