1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

Merge pull request #17636 from jenswet/bugfix/gnr_pkt_iso_cpp

net/gnrc/pkt: Fix ISO C++ compatibility
This commit is contained in:
benpicco 2022-02-11 00:49:31 +01:00 committed by GitHub
commit 4fb2394f1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;