silence some more warnings in the test apps

This commit is contained in:
jani 2004-01-06 18:45:51 +00:00
parent ab392ac737
commit 60e2d4bfbc
6 changed files with 10 additions and 6 deletions

View File

@ -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 <cyg/infra/cyg_type.h>
#if (CYG_BYTEORDER == CYG_LSBFIRST)

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);