From 06beffa4f8f350aad6f6167abb7bebeecd0166ff Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 22 Aug 2022 15:00:49 +0200 Subject: user/netstack: fix some meaningless type warnings --- src/user/app/netstack/ether.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/user/app/netstack/ether.c') diff --git a/src/user/app/netstack/ether.c b/src/user/app/netstack/ether.c index 5893632..20d16ab 100644 --- a/src/user/app/netstack/ether.c +++ b/src/user/app/netstack/ether.c @@ -12,8 +12,8 @@ struct ethq *ether_queue; void ether_parse(const uint8_t *buf, size_t len) { struct ethernet ether = (struct ethernet){ - .src = buf + SrcMAC, - .dst = buf + DstMAC, + .src = (void*)(buf + SrcMAC), + .dst = (void*)(buf + DstMAC), .type = nget16(buf + EtherType), }; -- cgit v1.2.3