mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-10-12 08:23:42 +00:00
silence some more warnings in the test apps
This commit is contained in:
parent
ab392ac737
commit
60e2d4bfbc
@ -71,6 +71,10 @@
|
|||||||
//while EFAULT should have no meaning in eCos since there are no address spaces
|
//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.
|
//it is defined here because set/getsockopt in lwIP use it.
|
||||||
#define EFAULT 14
|
#define EFAULT 14
|
||||||
|
|
||||||
|
//found no better place for this prototype
|
||||||
|
int lwip_init(void);
|
||||||
|
|
||||||
//#define LWIP_PROVIDE_ERRNO
|
//#define LWIP_PROVIDE_ERRNO
|
||||||
#include <cyg/infra/cyg_type.h>
|
#include <cyg/infra/cyg_type.h>
|
||||||
#if (CYG_BYTEORDER == CYG_LSBFIRST)
|
#if (CYG_BYTEORDER == CYG_LSBFIRST)
|
||||||
|
@ -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);
|
hs->left = sizeof(sdata);
|
||||||
|
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
@ -276,7 +276,7 @@ httpd_init(void *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
tmain(void * p)
|
tmain(cyg_addrword_t p)
|
||||||
{
|
{
|
||||||
lwip_init();
|
lwip_init();
|
||||||
sys_thread_new(httpd_init, (void*)"httpd",7);
|
sys_thread_new(httpd_init, (void*)"httpd",7);
|
||||||
|
@ -735,7 +735,7 @@ cyg_start(void *n)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
tmain(void * p)
|
tmain(cyg_addrword_t p)
|
||||||
{
|
{
|
||||||
lwip_init();
|
lwip_init();
|
||||||
sys_thread_new(net_test, 0, MAIN_THREAD_PRIORITY);
|
sys_thread_new(net_test, 0, MAIN_THREAD_PRIORITY);
|
||||||
|
@ -61,7 +61,7 @@ socket_thread(void *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
tmain(void * p)
|
tmain(cyg_addrword_t p)
|
||||||
{
|
{
|
||||||
lwip_init();
|
lwip_init();
|
||||||
sys_thread_new(socket_thread, (void*)"socket",7);
|
sys_thread_new(socket_thread, (void*)"socket",7);
|
||||||
|
@ -108,7 +108,7 @@ tcpecho_thread(void *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
tmain(void * p)
|
tmain(cyg_addrword_t p)
|
||||||
{
|
{
|
||||||
lwip_init();
|
lwip_init();
|
||||||
sys_thread_new(tcpecho_thread, (void*)"tcpecho",7);
|
sys_thread_new(tcpecho_thread, (void*)"tcpecho",7);
|
||||||
|
@ -91,7 +91,7 @@ udpecho_thread(void *arg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
void tmain(void * i)
|
void tmain(cyg_addrword_t p)
|
||||||
{
|
{
|
||||||
lwip_init();
|
lwip_init();
|
||||||
sys_thread_new(udpecho_thread, (void*)"udpecho",7);
|
sys_thread_new(udpecho_thread, (void*)"udpecho",7);
|
||||||
|
Loading…
Reference in New Issue
Block a user