summaryrefslogtreecommitdiffstats
path: root/c/src/exec/itron/src/snd_mbx.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/itron/src/snd_mbx.c')
-rw-r--r--c/src/exec/itron/src/snd_mbx.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/c/src/exec/itron/src/snd_mbx.c b/c/src/exec/itron/src/snd_mbx.c
index e02714465e..db1f0ee5ae 100644
--- a/c/src/exec/itron/src/snd_mbx.c
+++ b/c/src/exec/itron/src/snd_mbx.c
@@ -29,6 +29,7 @@ ER snd_msg(
Objects_Locations location;
unsigned32 message_priority;
void *message_contents;
+ CORE_message_queue_Status msg_status;
if ( !pk_msg )
return E_PAR;
@@ -46,7 +47,7 @@ ER snd_msg(
message_priority = CORE_MESSAGE_QUEUE_SEND_REQUEST;
message_contents = pk_msg;
- _CORE_message_queue_Submit(
+ msg_status = _CORE_message_queue_Submit(
&the_mailbox->message_queue,
&message_contents,
sizeof(T_MSG *),
@@ -60,8 +61,6 @@ ER snd_msg(
}
_ITRON_return_errorno(
- _ITRON_Mailbox_Translate_core_message_queue_return_code(
- _Thread_Executing->Wait.return_code
- )
+ _ITRON_Mailbox_Translate_core_message_queue_return_code( msg_status )
);
}