From abeaad5508a338fee0e85f92e07e87d896ebf703 Mon Sep 17 00:00:00 2001 From: Aleksander Kaminski Date: Wed, 13 Sep 2023 18:08:40 +0200 Subject: [PATCH] Adapt to msgRecv, msgRespond API change JIRA: RTOS-606 --- drivers/tuntap.c | 2 +- port/main.c | 2 +- port/sockets.c | 4 ++-- wi-fi/lwip/main.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/tuntap.c b/drivers/tuntap.c index 299a730..e1114bf 100644 --- a/drivers/tuntap.c +++ b/drivers/tuntap.c @@ -139,7 +139,7 @@ static void tuntap_mainLoop(void* _state) { tuntap_priv_t *state = _state; msg_t msg; - unsigned long rid; + msg_rid_t rid; while (1) { if (msgRecv(state->port, &msg, &rid) < 0) { diff --git a/port/main.c b/port/main.c index d78ced0..dce131f 100644 --- a/port/main.c +++ b/port/main.c @@ -29,7 +29,7 @@ static void mainLoop(void) { msg_t msg = { 0 }; - unsigned long int rid; + msg_rid_t rid; unsigned port; if (portCreate(&port) < 0) { diff --git a/port/sockets.c b/port/sockets.c index e2f05b7..6ea9961 100644 --- a/port/sockets.c +++ b/port/sockets.c @@ -824,7 +824,7 @@ static int socket_op(msg_t *msg, int sock) static void socket_thread(void *arg) { struct sock_start *ss = arg; - unsigned long respid; + msg_rid_t respid; uint32_t port = ss->port; int sock = ss->sock, err; msg_t msg; @@ -1114,7 +1114,7 @@ static int do_getifaddrs(char *buf, size_t *buflen) static void socketsrv_thread(void *arg) { - unsigned long respid; + msg_rid_t respid; size_t sz; msg_t msg; uint32_t port; diff --git a/wi-fi/lwip/main.c b/wi-fi/lwip/main.c index 4f9d4a5..9d6a996 100644 --- a/wi-fi/lwip/main.c +++ b/wi-fi/lwip/main.c @@ -473,7 +473,7 @@ static void wifi_msg_thread(void *arg) for (;;) { msg_t msg = { 0 }; - unsigned long int rid; + msg_rid_t rid; if (msgRecv(port, &msg, &rid) < 0) continue;