Skip to content

Commit

Permalink
fix _z_listen_udp_multicast function signature for non-unix targets
Browse files Browse the repository at this point in the history
  • Loading branch information
p-avital committed Sep 20, 2023
1 parent ea4eb13 commit 7669c2f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/system/arduino/esp32/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/system/arduino/opencr/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 2 additions & 1 deletion src/system/espidf/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/system/mbed/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 2 additions & 1 deletion src/system/windows/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion src/system/zephyr/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7669c2f

Please sign in to comment.