summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhou Yanjie <[email protected]>2019-02-05 15:27:44 +0800
committerZhou Yanjie <[email protected]>2019-02-05 15:30:23 +0800
commit4c585c2d31d0724c7c18b1ce0068194aeed010ef (patch)
tree139226399131023e6707d213e8c38429389d1cfc
parent949468f34ca1e5d3de6ecd4286a3b5a2db799986 (diff)
lwip-2.1.0: ethernetif.c: 修复编译过程中的警告/Fix compile-time warnings
在第334行中,“(rt_uint32_t*)&msg”应改为“(rt_ubase_t *)&msg”。 在第366行中,“(rt_uint32_t*)&msg”应改为“(rt_ubase_t *)&msg”。 In line 334, "(rt_uint32_t*)&msg" should be changed to "(rt_ubase_t *)&msg". In line 366, "(rt_uint32_t*)&msg" should be changed to "(rt_ubase_t *)&msg". Signed-off-by: Zhou Yanjie <[email protected]>
-rwxr-xr-x[-rw-r--r--]components/net/lwip-2.1.0/src/netif/ethernetif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/net/lwip-2.1.0/src/netif/ethernetif.c b/components/net/lwip-2.1.0/src/netif/ethernetif.c
index 910d7c3470..8fe78ee9b0 100644..100755
--- a/components/net/lwip-2.1.0/src/netif/ethernetif.c
+++ b/components/net/lwip-2.1.0/src/netif/ethernetif.c
@@ -331,7 +331,7 @@ static void eth_tx_thread_entry(void* parameter)
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;
@@ -363,7 +363,7 @@ static void eth_rx_thread_entry(void* parameter)
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;