From 9156646ce4e436bd766919bd7df31c1e95d12208 Mon Sep 17 00:00:00 2001 From: jani Date: Fri, 9 Jan 2004 15:36:06 +0000 Subject: [PATCH] minor cleanup,use rign ifdef --- ports/ecos/ecos/net/lwip_tcpip/current/src/ecos/init.c | 6 +++--- ports/ecos/ecos/net/lwip_tcpip/current/src/ecos/sys_arch.c | 6 +----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/ports/ecos/ecos/net/lwip_tcpip/current/src/ecos/init.c b/ports/ecos/ecos/net/lwip_tcpip/current/src/ecos/init.c index 6e34b00..64339dd 100644 --- a/ports/ecos/ecos/net/lwip_tcpip/current/src/ecos/init.c +++ b/ports/ecos/ecos/net/lwip_tcpip/current/src/ecos/init.c @@ -56,7 +56,7 @@ #include #include -#ifdef CYGPKG_IO_ETH_DRIVERS +#ifdef CYGPKG_LWIP_ETH #include "netif/etharp.h" #include @@ -182,7 +182,7 @@ lwip_set_addr(struct netif *netif) //netif->input = ip_input; } -#ifdef CYGPKG_IO_ETH_DRIVERS +#ifdef CYGPKG_LWIP_ETH //io eth stuff cyg_sem_t delivery; @@ -255,4 +255,4 @@ ecosglue_init(void) sys_timeout(ARP_TMR_INTERVAL, (sys_timeout_handler) arp_timer, NULL); } -#endif //CYGPKG_IO_ETH_DRIVERS +#endif //CYGPKG_LWIP_ETH diff --git a/ports/ecos/ecos/net/lwip_tcpip/current/src/ecos/sys_arch.c b/ports/ecos/ecos/net/lwip_tcpip/current/src/ecos/sys_arch.c index 8b5f6f5..29c7430 100644 --- a/ports/ecos/ecos/net/lwip_tcpip/current/src/ecos/sys_arch.c +++ b/ports/ecos/ecos/net/lwip_tcpip/current/src/ecos/sys_arch.c @@ -30,7 +30,7 @@ //####ECOSGPLCOPYRIGHTEND#### //========================================================================== // Author: Jani Monoses -// Contributors: Claudio Leonel +// Contributors: Claudio Leonel Salvadori // /* @@ -85,8 +85,6 @@ void sys_init(void) to.next = NULL; } -/*------------------------------------ Message boxes ----------------------------------------*/ - /* * Create a new mbox.If no memory is available return NULL */ @@ -172,8 +170,6 @@ u32_t sys_arch_mbox_fetch(sys_mbox_t mbox, void **data, u32_t timeout) return tick_to_msec(end_time - start_time); } -/*----------------------------------------- Semaphores ------------------------------------ */ - /* * Create a new semaphore and initialize it. * If no memory is available return NULL