]> git.droids-corp.org - dpdk.git/blobdiff - lib/net/rte_ether.h
net: avoid cast-align warning in VLAN insert function
[dpdk.git] / lib / net / rte_ether.h
index 2c7da55b6b0577bf385e13157884be4680b8a58a..1a0dbf0d607c7ef76d0b917d2bed6e1c234f30a8 100644 (file)
@@ -367,7 +367,7 @@ static inline int rte_vlan_insert(struct rte_mbuf **m)
                return -EINVAL;
 
        oh = rte_pktmbuf_mtod(*m, struct rte_ether_hdr *);
-       nh = (struct rte_ether_hdr *)
+       nh = (struct rte_ether_hdr *)(void *)
                rte_pktmbuf_prepend(*m, sizeof(struct rte_vlan_hdr));
        if (nh == NULL)
                return -ENOSPC;