From 7669c2f00e9e5cccb8777740b2e851c386cf9544 Mon Sep 17 00:00:00 2001 From: Pierre Avital Date: Wed, 20 Sep 2023 15:49:53 +0200 Subject: [PATCH] fix _z_listen_udp_multicast function signature for non-unix targets --- src/system/arduino/esp32/network.cpp | 3 ++- src/system/arduino/opencr/network.cpp | 3 ++- src/system/espidf/network.c | 3 ++- src/system/mbed/network.cpp | 3 ++- src/system/windows/network.c | 3 ++- src/system/zephyr/network.c | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/system/arduino/esp32/network.cpp b/src/system/arduino/esp32/network.cpp index 80462b794..c85ea7d07 100644 --- a/src/system/arduino/esp32/network.cpp +++ b/src/system/arduino/esp32/network.cpp @@ -346,7 +346,8 @@ int8_t _z_open_udp_multicast(_z_sys_net_socket_t *sock, const _z_sys_net_endpoin } int8_t _z_listen_udp_multicast(_z_sys_net_socket_t *sock, const _z_sys_net_endpoint_t rep, uint32_t tout, - const char *iface) { + const char *iface, const char *join) { + (void)join; int8_t ret = _Z_RES_OK; struct sockaddr *lsockaddr = NULL; diff --git a/src/system/arduino/opencr/network.cpp b/src/system/arduino/opencr/network.cpp index ed3042985..8dfecbcec 100644 --- a/src/system/arduino/opencr/network.cpp +++ b/src/system/arduino/opencr/network.cpp @@ -252,7 +252,8 @@ int8_t _z_open_udp_multicast(_z_sys_net_socket_t *sock, const _z_sys_net_endpoin } int8_t _z_listen_udp_multicast(_z_sys_net_socket_t *sock, const _z_sys_net_endpoint_t rep, uint32_t tout, - const char *iface) { + const char *iface, const char *join) { + (void)join; int8_t ret = _Z_RES_OK; sock->_udp = new WiFiUDP(); diff --git a/src/system/espidf/network.c b/src/system/espidf/network.c index f6a24bd0b..55b3e7036 100644 --- a/src/system/espidf/network.c +++ b/src/system/espidf/network.c @@ -342,7 +342,8 @@ int8_t _z_open_udp_multicast(_z_sys_net_socket_t *sock, const _z_sys_net_endpoin } int8_t _z_listen_udp_multicast(_z_sys_net_socket_t *sock, const _z_sys_net_endpoint_t rep, uint32_t tout, - const char *iface) { + const char *iface, const char *join) { + (void)join; int8_t ret = _Z_RES_OK; struct sockaddr *lsockaddr = NULL; diff --git a/src/system/mbed/network.cpp b/src/system/mbed/network.cpp index fa189f4b8..6653fceea 100644 --- a/src/system/mbed/network.cpp +++ b/src/system/mbed/network.cpp @@ -225,7 +225,8 @@ int8_t _z_open_udp_multicast(_z_sys_net_socket_t *sock, const _z_sys_net_endpoin } int8_t _z_listen_udp_multicast(_z_sys_net_socket_t *sock, const _z_sys_net_endpoint_t rep, uint32_t tout, - const char *iface) { + const char *iface, const char *join) { + (void)join; int8_t ret = _Z_RES_OK; sock->_udp = new UDPSocket(); diff --git a/src/system/windows/network.c b/src/system/windows/network.c index 3268a0890..6ce0eb5ab 100644 --- a/src/system/windows/network.c +++ b/src/system/windows/network.c @@ -417,7 +417,8 @@ int8_t _z_open_udp_multicast(_z_sys_net_socket_t *sock, const _z_sys_net_endpoin } int8_t _z_listen_udp_multicast(_z_sys_net_socket_t *sock, const _z_sys_net_endpoint_t rep, uint32_t tout, - const char *iface) { + const char *iface, const char *join) { + (void)join; int8_t ret = _Z_RES_OK; if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0) { diff --git a/src/system/zephyr/network.c b/src/system/zephyr/network.c index f0842dc08..49978b49c 100644 --- a/src/system/zephyr/network.c +++ b/src/system/zephyr/network.c @@ -337,7 +337,8 @@ int8_t _z_open_udp_multicast(_z_sys_net_socket_t *sock, const _z_sys_net_endpoin } int8_t _z_listen_udp_multicast(_z_sys_net_socket_t *sock, const _z_sys_net_endpoint_t rep, uint32_t tout, - const char *iface) { + const char *iface, const char *join) { + (void)join; int8_t ret = _Z_RES_OK; struct sockaddr *lsockaddr = NULL;