1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

net/gnrc/pkt: Fix ISO C++ compatibility

This commit is contained in:
Jens Wetterich 2022-02-10 18:12:40 +01:00
parent c423148bbc
commit f1f1896628

View File

@ -210,7 +210,7 @@ static inline gnrc_pktsnip_t *gnrc_pkt_prepend(gnrc_pktsnip_t *pkt,
static inline gnrc_pktsnip_t *gnrc_pkt_delete(gnrc_pktsnip_t *pkt,
gnrc_pktsnip_t *snip)
{
list_node_t list = { .next = (list_node_t *)pkt };
list_node_t list = { (list_node_t *)pkt };
list_remove(&list, (list_node_t *)snip);
return (gnrc_pktsnip_t *)list.next;