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

sys/shell: use container_of in sc_gnrc_netif

This commit is contained in:
Marian Buschsieweke 2021-11-07 15:15:06 +01:00
parent e4c627d252
commit be42be9d15
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -1774,7 +1774,7 @@ int _gnrc_netif_send(int argc, char **argv)
nethdr = (gnrc_netif_hdr_t *)hdr->data;
nethdr->flags = flags;
/* and send it */
if (gnrc_netif_send((gnrc_netif_t *)iface, pkt) < 1) {
if (gnrc_netif_send(container_of(iface, gnrc_netif_t, netif), pkt) < 1) {
puts("error: unable to send");
gnrc_pktbuf_release(pkt);
return 1;