Merge pull request #2312 from Ingenic-community/master

net:  lwip-2.1.0: 修复编译过程中的警告/Fix compile-time warnings
This commit is contained in:
Bernard Xiong 2019-02-06 07:48:58 +08:00 committed by GitHub
commit f87db0908e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

4
components/net/lwip-2.1.0/src/arch/sys_arch.c Normal file → Executable file
View File

@ -522,7 +522,7 @@ u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
t = timeout / (1000/RT_TICK_PER_SECOND); t = timeout / (1000/RT_TICK_PER_SECOND);
} }
ret = rt_mb_recv(*mbox, (rt_uint32_t *)msg, t); ret = rt_mb_recv(*mbox, (rt_ubase_t *)msg, t);
if(ret == -RT_ETIMEOUT) if(ret == -RT_ETIMEOUT)
return SYS_ARCH_TIMEOUT; return SYS_ARCH_TIMEOUT;
@ -553,7 +553,7 @@ u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg)
{ {
int ret; int ret;
ret = rt_mb_recv(*mbox, (rt_uint32_t *)msg, 0); ret = rt_mb_recv(*mbox, (rt_ubase_t *)msg, 0);
if(ret == -RT_ETIMEOUT) if(ret == -RT_ETIMEOUT)
return SYS_ARCH_TIMEOUT; return SYS_ARCH_TIMEOUT;

4
components/net/lwip-2.1.0/src/netif/ethernetif.c Normal file → Executable file
View File

@ -333,7 +333,7 @@ static void eth_tx_thread_entry(void* parameter)
while (1) while (1)
{ {
if (rt_mb_recv(&eth_tx_thread_mb, (rt_uint32_t*)&msg, RT_WAITING_FOREVER) == RT_EOK) if (rt_mb_recv(&eth_tx_thread_mb, (rt_ubase_t *)&msg, RT_WAITING_FOREVER) == RT_EOK)
{ {
struct eth_device* enetif; struct eth_device* enetif;
@ -365,7 +365,7 @@ static void eth_rx_thread_entry(void* parameter)
while (1) while (1)
{ {
if (rt_mb_recv(&eth_rx_thread_mb, (rt_uint32_t*)&device, RT_WAITING_FOREVER) == RT_EOK) if (rt_mb_recv(&eth_rx_thread_mb, (rt_ubase_t *)&device, RT_WAITING_FOREVER) == RT_EOK)
{ {
struct pbuf *p; struct pbuf *p;