changeset 2165:fa277d078e96

* tests/nc_test_framework.h: * tests/nc_test_master.c: Fix the compiler warnings when building for Linux.
author asl
date Sun, 26 Mar 2006 11:15:06 +0000
parents 6087f9ab81ec
children 2df8da4ddf46
files packages/net/common/current/ChangeLog packages/net/common/current/tests/nc_test_framework.h packages/net/common/current/tests/nc_test_master.c
diffstat 3 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packages/net/common/current/ChangeLog
+++ b/packages/net/common/current/ChangeLog
@@ -1,3 +1,9 @@
+2006-03-26  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* tests/nc_test_framework.h: 
+	* tests/nc_test_master.c: Fix the compiler warnings when
+	building for Linux.
+
 2006-02-27	Jay Foster   <jay@systech.com>
 
 	* src/dhcp_prot.c: Updated set_fixed_tag(), set_variable_tag(),
--- a/packages/net/common/current/tests/nc_test_framework.h
+++ b/packages/net/common/current/tests/nc_test_framework.h
@@ -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
--- a/packages/net/common/current/tests/nc_test_master.c
+++ b/packages/net/common/current/tests/nc_test_master.c
@@ -66,6 +66,7 @@ struct pause {
 extern void
 cyg_test_exit(void);
 #else
+#include <stdlib.h>
 void
 cyg_test_exit(void)
 {