[rtems commit] rtems: Use _Status_Get()
Sebastian Huber
sebh at rtems.org
Thu Jan 28 08:58:19 UTC 2021
Module: rtems
Branch: master
Commit: fcbefb5ee6dd2afa10460d4f91fae28c6ef57bf1
Changeset: http://git.rtems.org/rtems/commit/?id=fcbefb5ee6dd2afa10460d4f91fae28c6ef57bf1
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Jan 28 09:48:21 2021 +0100
rtems: Use _Status_Get()
This fixes implicit conversions between different enum types.
---
cpukit/rtems/src/clockset.c | 3 ++-
cpukit/rtems/src/msgqconstruct.c | 3 ++-
cpukit/rtems/src/rtemsobjectsetname.c | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/cpukit/rtems/src/clockset.c b/cpukit/rtems/src/clockset.c
index a4a3cd1..7a085ad 100644
--- a/cpukit/rtems/src/clockset.c
+++ b/cpukit/rtems/src/clockset.c
@@ -21,6 +21,7 @@
#endif
#include <rtems/rtems/clockimpl.h>
+#include <rtems/rtems/statusimpl.h>
#include <rtems/score/todimpl.h>
#include <rtems/config.h>
@@ -46,7 +47,7 @@ rtems_status_code rtems_clock_set(
status = _TOD_Set( &tod_as_timespec, &lock_context );
_TOD_Unlock();
- return STATUS_GET_CLASSIC( status );
+ return _Status_Get( status );
}
return RTEMS_INVALID_CLOCK;
diff --git a/cpukit/rtems/src/msgqconstruct.c b/cpukit/rtems/src/msgqconstruct.c
index af5849b..a8a50e9 100644
--- a/cpukit/rtems/src/msgqconstruct.c
+++ b/cpukit/rtems/src/msgqconstruct.c
@@ -22,6 +22,7 @@
#include <rtems/rtems/messageimpl.h>
#include <rtems/rtems/attrimpl.h>
+#include <rtems/rtems/statusimpl.h>
#include <rtems/rtems/support.h>
#include <rtems/score/coremsgimpl.h>
#include <rtems/sysinit.h>
@@ -154,7 +155,7 @@ rtems_status_code _Message_queue_Create(
_Message_queue_Free( the_message_queue );
_Objects_Allocator_unlock();
- return STATUS_GET_CLASSIC( status );
+ return _Status_Get( status );
}
_Objects_Open(
diff --git a/cpukit/rtems/src/rtemsobjectsetname.c b/cpukit/rtems/src/rtemsobjectsetname.c
index 71be850..68127b0 100644
--- a/cpukit/rtems/src/rtemsobjectsetname.c
+++ b/cpukit/rtems/src/rtemsobjectsetname.c
@@ -21,6 +21,7 @@
#endif
#include <rtems/rtems/object.h>
+#include <rtems/rtems/statusimpl.h>
#include <rtems/rtems/tasks.h>
#include <rtems/score/objectimpl.h>
@@ -58,5 +59,5 @@ rtems_status_code rtems_object_set_name(
status = _Objects_Set_name( information, the_object, name );
_Objects_Allocator_unlock();
- return STATUS_GET_CLASSIC( status );
+ return _Status_Get( status );
}
More information about the vc
mailing list