[rtems commit] score: Constify objects name to id functions
Sebastian Huber
sebh at rtems.org
Mon Aug 31 14:21:33 UTC 2020
Module: rtems
Branch: master
Commit: 33dbb3355f683940fcbb62a6e7507553d5b2885b
Changeset: http://git.rtems.org/rtems/commit/?id=33dbb3355f683940fcbb62a6e7507553d5b2885b
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Jun 24 13:12:49 2020 +0200
score: Constify objects name to id functions
---
cpukit/include/rtems/score/objectimpl.h | 8 ++++----
cpukit/include/rtems/score/objectmp.h | 8 ++++----
cpukit/score/src/objectmp.c | 8 ++++----
cpukit/score/src/objectnametoid.c | 10 +++++-----
4 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/cpukit/include/rtems/score/objectimpl.h b/cpukit/include/rtems/score/objectimpl.h
index c540f90..a8c7fcb 100644
--- a/cpukit/include/rtems/score/objectimpl.h
+++ b/cpukit/include/rtems/score/objectimpl.h
@@ -237,10 +237,10 @@ typedef enum {
* @retval OBJECTS_INVALID_ID The id is not 0 before the operation.
*/
Objects_Name_or_id_lookup_errors _Objects_Name_to_id_u32(
- Objects_Information *information,
- uint32_t name,
- uint32_t node,
- Objects_Id *id
+ const Objects_Information *information,
+ uint32_t name,
+ uint32_t node,
+ Objects_Id *id
);
typedef enum {
diff --git a/cpukit/include/rtems/score/objectmp.h b/cpukit/include/rtems/score/objectmp.h
index fcdfa78..c2621c3 100644
--- a/cpukit/include/rtems/score/objectmp.h
+++ b/cpukit/include/rtems/score/objectmp.h
@@ -150,10 +150,10 @@ void _Objects_MP_Close (
* @retval OBJECTS_INVALID_NAME There is no global object with this name.
*/
Objects_Name_or_id_lookup_errors _Objects_MP_Global_name_search (
- Objects_Information *information,
- Objects_Name the_name,
- uint32_t nodes_to_search,
- Objects_Id *the_id
+ const Objects_Information *information,
+ Objects_Name the_name,
+ uint32_t nodes_to_search,
+ Objects_Id *the_id
);
/**
diff --git a/cpukit/score/src/objectmp.c b/cpukit/score/src/objectmp.c
index 987b86a..e956135 100644
--- a/cpukit/score/src/objectmp.c
+++ b/cpukit/score/src/objectmp.c
@@ -284,10 +284,10 @@ void _Objects_MP_Close (
}
Objects_Name_or_id_lookup_errors _Objects_MP_Global_name_search(
- Objects_Information *information,
- Objects_Name the_name,
- uint32_t nodes_to_search,
- Objects_Id *the_id
+ const Objects_Information *information,
+ Objects_Name the_name,
+ uint32_t nodes_to_search,
+ Objects_Id *the_id
)
{
Objects_Name_or_id_lookup_errors status;
diff --git a/cpukit/score/src/objectnametoid.c b/cpukit/score/src/objectnametoid.c
index bafa7b2..2a9052d 100644
--- a/cpukit/score/src/objectnametoid.c
+++ b/cpukit/score/src/objectnametoid.c
@@ -21,14 +21,14 @@
#include <rtems/score/objectimpl.h>
Objects_Name_or_id_lookup_errors _Objects_Name_to_id_u32(
- Objects_Information *information,
- uint32_t name,
- uint32_t node,
- Objects_Id *id
+ const Objects_Information *information,
+ uint32_t name,
+ uint32_t node,
+ Objects_Id *id
)
{
bool search_local_node;
- Objects_Control *the_object;
+ const Objects_Control *the_object;
Objects_Maximum maximum;
Objects_Maximum index;
#if defined(RTEMS_MULTIPROCESSING)
More information about the vc
mailing list