[riot-notifications] [RIOT-OS/RIOT] netutils: add netutils_parse_hostname() (#16634)

Martine Lenders notifications at github.com
Wed Jul 14 16:54:14 CEST 2021


@miri64 commented on this pull request.



> @@ -97,7 +89,7 @@ static void send(char *addr_str, char *port_str, char *data, unsigned int num,
         if (netif != NULL) {
             gnrc_pktsnip_t *netif_hdr = gnrc_netif_hdr_build(NULL, 0, NULL, 0);
 
-            gnrc_netif_hdr_set_netif(netif_hdr->data, netif);
+            gnrc_netif_hdr_set_netif(netif_hdr->data, (gnrc_netif_t *)netif);

Rather use `container_of` here.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16634#pullrequestreview-706377481
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210714/418324d8/attachment.htm>


More information about the notifications mailing list