From 60e2d4bfbc2cf3af7c740fc6f38e8681fd2e4ce3 Mon Sep 17 00:00:00 2001 From: jani Date: Tue, 6 Jan 2004 18:45:51 +0000 Subject: [PATCH] silence some more warnings in the test apps --- ports/ecos/ecos/net/lwip_tcpip/current/include/arch/cc.h | 4 ++++ ports/ecos/ecos/net/lwip_tcpip/current/tests/httpd.c | 4 ++-- ports/ecos/ecos/net/lwip_tcpip/current/tests/nc_test_slave.c | 2 +- ports/ecos/ecos/net/lwip_tcpip/current/tests/socket.c | 2 +- ports/ecos/ecos/net/lwip_tcpip/current/tests/tcpecho.c | 2 +- ports/ecos/ecos/net/lwip_tcpip/current/tests/udpecho.c | 2 +- 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ports/ecos/ecos/net/lwip_tcpip/current/include/arch/cc.h b/ports/ecos/ecos/net/lwip_tcpip/current/include/arch/cc.h index 9c41309..674fcd0 100644 --- a/ports/ecos/ecos/net/lwip_tcpip/current/include/arch/cc.h +++ b/ports/ecos/ecos/net/lwip_tcpip/current/include/arch/cc.h @@ -71,6 +71,10 @@ //while EFAULT should have no meaning in eCos since there are no address spaces //it is defined here because set/getsockopt in lwIP use it. #define EFAULT 14 + +//found no better place for this prototype +int lwip_init(void); + //#define LWIP_PROVIDE_ERRNO #include #if (CYG_BYTEORDER == CYG_LSBFIRST) diff --git a/ports/ecos/ecos/net/lwip_tcpip/current/tests/httpd.c b/ports/ecos/ecos/net/lwip_tcpip/current/tests/httpd.c index 6a80253..aa3bf1c 100644 --- a/ports/ecos/ecos/net/lwip_tcpip/current/tests/httpd.c +++ b/ports/ecos/ecos/net/lwip_tcpip/current/tests/httpd.c @@ -203,7 +203,7 @@ http_recv(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err) } } - hs->file = sdata; + hs->file = &sdata; hs->left = sizeof(sdata); pbuf_free(p); @@ -276,7 +276,7 @@ httpd_init(void *arg) } void -tmain(void * p) +tmain(cyg_addrword_t p) { lwip_init(); sys_thread_new(httpd_init, (void*)"httpd",7); diff --git a/ports/ecos/ecos/net/lwip_tcpip/current/tests/nc_test_slave.c b/ports/ecos/ecos/net/lwip_tcpip/current/tests/nc_test_slave.c index cf5b77a..16695d2 100644 --- a/ports/ecos/ecos/net/lwip_tcpip/current/tests/nc_test_slave.c +++ b/ports/ecos/ecos/net/lwip_tcpip/current/tests/nc_test_slave.c @@ -735,7 +735,7 @@ cyg_start(void *n) #endif void -tmain(void * p) +tmain(cyg_addrword_t p) { lwip_init(); sys_thread_new(net_test, 0, MAIN_THREAD_PRIORITY); diff --git a/ports/ecos/ecos/net/lwip_tcpip/current/tests/socket.c b/ports/ecos/ecos/net/lwip_tcpip/current/tests/socket.c index bbddffe..fa1d5ca 100644 --- a/ports/ecos/ecos/net/lwip_tcpip/current/tests/socket.c +++ b/ports/ecos/ecos/net/lwip_tcpip/current/tests/socket.c @@ -61,7 +61,7 @@ socket_thread(void *arg) } void -tmain(void * p) +tmain(cyg_addrword_t p) { lwip_init(); sys_thread_new(socket_thread, (void*)"socket",7); diff --git a/ports/ecos/ecos/net/lwip_tcpip/current/tests/tcpecho.c b/ports/ecos/ecos/net/lwip_tcpip/current/tests/tcpecho.c index 85c613c..d05cbdd 100644 --- a/ports/ecos/ecos/net/lwip_tcpip/current/tests/tcpecho.c +++ b/ports/ecos/ecos/net/lwip_tcpip/current/tests/tcpecho.c @@ -108,7 +108,7 @@ tcpecho_thread(void *arg) } void -tmain(void * p) +tmain(cyg_addrword_t p) { lwip_init(); sys_thread_new(tcpecho_thread, (void*)"tcpecho",7); diff --git a/ports/ecos/ecos/net/lwip_tcpip/current/tests/udpecho.c b/ports/ecos/ecos/net/lwip_tcpip/current/tests/udpecho.c index d9ff901..cc5a6ff 100644 --- a/ports/ecos/ecos/net/lwip_tcpip/current/tests/udpecho.c +++ b/ports/ecos/ecos/net/lwip_tcpip/current/tests/udpecho.c @@ -91,7 +91,7 @@ udpecho_thread(void *arg) } } /*-----------------------------------------------------------------------------------*/ -void tmain(void * i) +void tmain(cyg_addrword_t p) { lwip_init(); sys_thread_new(udpecho_thread, (void*)"udpecho",7);