Skip to content

Commit

Permalink
Adapt to msgRecv, msgRespond API change
Browse files Browse the repository at this point in the history
JIRA: RTOS-606
  • Loading branch information
agkaminski committed Sep 13, 2023
1 parent 55f4d30 commit abeaad5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drivers/tuntap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion port/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
static void mainLoop(void)
{
msg_t msg = { 0 };
unsigned long int rid;
msg_rid_t rid;

Check failure on line 32 in port/main.c

View workflow job for this annotation

GitHub Actions / call-ci / build (armv7m7-imxrt105x-evk)

unknown type name 'msg_rid_t'

Check failure on line 32 in port/main.c

View workflow job for this annotation

GitHub Actions / call-ci / build (armv7m7-imxrt106x-evk)

unknown type name 'msg_rid_t'
unsigned port;

if (portCreate(&port) < 0) {
Expand Down
4 changes: 2 additions & 2 deletions port/sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion wi-fi/lwip/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit abeaad5

Please sign in to comment.