Merge pull request #2312 from Ingenic-community/master
net: lwip-2.1.0: 修复编译过程中的警告/Fix compile-time warnings
This commit is contained in:
commit
f87db0908e
|
@ -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);
|
||||
}
|
||||
|
||||
ret = rt_mb_recv(*mbox, (rt_uint32_t *)msg, t);
|
||||
ret = rt_mb_recv(*mbox, (rt_ubase_t *)msg, t);
|
||||
|
||||
if(ret == -RT_ETIMEOUT)
|
||||
return SYS_ARCH_TIMEOUT;
|
||||
|
@ -553,7 +553,7 @@ u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg)
|
|||
{
|
||||
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)
|
||||
return SYS_ARCH_TIMEOUT;
|
||||
|
|
|
@ -333,7 +333,7 @@ static void eth_tx_thread_entry(void* parameter)
|
|||
|
||||
while (1)
|
||||
{
|
||||
if (rt_mb_recv(ð_tx_thread_mb, (rt_uint32_t*)&msg, RT_WAITING_FOREVER) == RT_EOK)
|
||||
if (rt_mb_recv(ð_tx_thread_mb, (rt_ubase_t *)&msg, RT_WAITING_FOREVER) == RT_EOK)
|
||||
{
|
||||
struct eth_device* enetif;
|
||||
|
||||
|
@ -365,7 +365,7 @@ static void eth_rx_thread_entry(void* parameter)
|
|||
|
||||
while (1)
|
||||
{
|
||||
if (rt_mb_recv(ð_rx_thread_mb, (rt_uint32_t*)&device, RT_WAITING_FOREVER) == RT_EOK)
|
||||
if (rt_mb_recv(ð_rx_thread_mb, (rt_ubase_t *)&device, RT_WAITING_FOREVER) == RT_EOK)
|
||||
{
|
||||
struct pbuf *p;
|
||||
|
||||
|
|
Loading…
Reference in New Issue