misc nit fixes for nit compilers

This commit is contained in:
Sergio R. Caprile committed 2026-04-02 14:55:07 -03:00
1 parent 4ff5b602cb
commit 14835cd32e
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -141,8 +141,8 @@ bool mg_l2_eth_rx(struct mg_tcpip_if *ifp, enum mg_l2proto *proto,
}
struct mg_l2addr *mg_l2_eth_getaddr(struct mg_tcpip_if *ifp, uint8_t *frame) {
(void) ifp; // address field is before a possible 802.1Q tag
struct eth *eth = (struct eth *) frame;
struct eth *eth = (struct eth *) frame;
(void) ifp; // address field is before a possible 802.1Q tag
return (struct mg_l2addr *) &eth->src;
}