summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/exec/posix/src/mqueuetranslatereturncode.c3
-rw-r--r--cpukit/posix/src/mqueuetranslatereturncode.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/c/src/exec/posix/src/mqueuetranslatereturncode.c b/c/src/exec/posix/src/mqueuetranslatereturncode.c
index edc5e2954d..01c832406e 100644
--- a/c/src/exec/posix/src/mqueuetranslatereturncode.c
+++ b/c/src/exec/posix/src/mqueuetranslatereturncode.c
@@ -23,6 +23,7 @@
#include <rtems/posix/seterr.h>
#include <rtems/posix/mqueue.h>
#include <rtems/posix/time.h>
+#include <rtems/score/interr.h>
/*PAGE
@@ -92,5 +93,5 @@ int _POSIX_Message_queue_Translate_core_message_queue_return_code(
TRUE,
the_message_queue_status
);
- return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */
+ return POSIX_BOTTOM_REACHED();
}
diff --git a/cpukit/posix/src/mqueuetranslatereturncode.c b/cpukit/posix/src/mqueuetranslatereturncode.c
index edc5e2954d..01c832406e 100644
--- a/cpukit/posix/src/mqueuetranslatereturncode.c
+++ b/cpukit/posix/src/mqueuetranslatereturncode.c
@@ -23,6 +23,7 @@
#include <rtems/posix/seterr.h>
#include <rtems/posix/mqueue.h>
#include <rtems/posix/time.h>
+#include <rtems/score/interr.h>
/*PAGE
@@ -92,5 +93,5 @@ int _POSIX_Message_queue_Translate_core_message_queue_return_code(
TRUE,
the_message_queue_status
);
- return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */
+ return POSIX_BOTTOM_REACHED();
}