lwip-2.1.0: sys_arch.c: 修复编译过程中的警告/Fix compile-time warnings
在第519行中,“(rt_uint32_t *)msg”应改为“(rt_ubase_t *)msg”。 在第550行中,“(rt_uint32_t *)msg”应改为“(rt_ubase_t *)msg”。 In line 519, "(rt_uint32_t *)msg" should be changed to "(rt_ubase_t *)msg". In line 550, "(rt_uint32_t *)msg" should be changed to "(rt_ubase_t *)msg". Signed-off-by: Zhou Yanjie <zhou_yan_jie@163.com>
This commit is contained in:
parent
ad11448024
commit
949468f34c
|
@ -516,7 +516,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;
|
||||
|
@ -547,7 +547,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;
|
||||
|
|
Loading…
Reference in New Issue