Added some more LWIP_UNUSED_ARG()s

This commit is contained in:
goldsimon 2007-04-24 08:35:19 +00:00
parent 02e194b15f
commit 4bedb07aa0
2 changed files with 8 additions and 1 deletions

View File

@ -87,8 +87,9 @@ tcp_timer_needed(void)
#if IP_REASSEMBLY #if IP_REASSEMBLY
static void static void
ip_timer(void *data) ip_timer(void *arg)
{ {
LWIP_UNUSED_ARG(arg);
LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip: ip_reass_tmr()\n")); LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip: ip_reass_tmr()\n"));
ip_reass_tmr(); ip_reass_tmr();
sys_timeout( IP_TMR_INTERVAL, ip_timer, NULL); sys_timeout( IP_TMR_INTERVAL, ip_timer, NULL);
@ -99,6 +100,7 @@ ip_timer(void *data)
static void static void
arp_timer(void *arg) arp_timer(void *arg)
{ {
LWIP_UNUSED_ARG(arg);
LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip: etharp_tmr()\n")); LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip: etharp_tmr()\n"));
etharp_tmr(); etharp_tmr();
sys_timeout( ARP_TMR_INTERVAL, arp_timer, NULL); sys_timeout( ARP_TMR_INTERVAL, arp_timer, NULL);
@ -109,6 +111,7 @@ arp_timer(void *arg)
static void static void
dhcp_timer_coarse(void *arg) dhcp_timer_coarse(void *arg)
{ {
LWIP_UNUSED_ARG(arg);
LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip: dhcp_coarse_tmr()\n")); LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip: dhcp_coarse_tmr()\n"));
dhcp_coarse_tmr(); dhcp_coarse_tmr();
sys_timeout(DHCP_COARSE_TIMER_SECS*1000, dhcp_timer_coarse, NULL); sys_timeout(DHCP_COARSE_TIMER_SECS*1000, dhcp_timer_coarse, NULL);
@ -117,6 +120,7 @@ dhcp_timer_coarse(void *arg)
static void static void
dhcp_timer_fine(void *arg) dhcp_timer_fine(void *arg)
{ {
LWIP_UNUSED_ARG(arg);
LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip: dhcp_fine_tmr()\n")); LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip: dhcp_fine_tmr()\n"));
dhcp_fine_tmr(); dhcp_fine_tmr();
sys_timeout(DHCP_FINE_TIMER_MSECS, dhcp_timer_fine, NULL); sys_timeout(DHCP_FINE_TIMER_MSECS, dhcp_timer_fine, NULL);
@ -167,6 +171,7 @@ static void
tcpip_thread(void *arg) tcpip_thread(void *arg)
{ {
struct tcpip_msg *msg; struct tcpip_msg *msg;
LWIP_UNUSED_ARG(arg);
#if IP_REASSEMBLY #if IP_REASSEMBLY
sys_timeout( IP_TMR_INTERVAL, ip_timer, NULL); sys_timeout( IP_TMR_INTERVAL, ip_timer, NULL);

View File

@ -90,6 +90,8 @@ raw_input(struct pbuf *p, struct netif *inp)
s16_t proto; s16_t proto;
u8_t eaten = 0; u8_t eaten = 0;
LWIP_UNUSED_ARG(inp);
iphdr = p->payload; iphdr = p->payload;
proto = IPH_PROTO(iphdr); proto = IPH_PROTO(iphdr);