summaryrefslogtreecommitdiff
path: root/src/user/app/netstack/ether.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app/netstack/ether.c')
-rw-r--r--src/user/app/netstack/ether.c4
1 files changed, 2 insertions, 2 deletions
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),
};