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:
parent
e4c627d252
commit
be42be9d15
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user