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

Merge pull request #18035 from laurin/net-sock-udp-designated-initializers

net/sock/udp: designated intializer, C++ compatibility
This commit is contained in:
Marian Buschsieweke 2022-04-29 03:05:19 +02:00 committed by GitHub
commit 7eaa437532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -683,8 +683,9 @@ static inline ssize_t sock_udp_send_aux(sock_udp_t *sock,
sock_udp_aux_tx_t *aux)
{
const iolist_t snip = {
.iol_base = (void *)data,
.iol_len = len,
NULL,
(void *)data,
len,
};
return sock_udp_sendv_aux(sock, &snip, remote, aux);