[rtems commit] score: Add const qualifier
Sebastian Huber
sebh at rtems.org
Thu Apr 16 09:37:35 UTC 2015
Module: rtems
Branch: master
Commit: 64548a3affe3d5a6478226831406627b693b8a1f
Changeset: http://git.rtems.org/rtems/commit/?id=64548a3affe3d5a6478226831406627b693b8a1f
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Apr 16 11:35:54 2015 +0200
score: Add const qualifier
---
cpukit/score/include/rtems/score/apimutex.h | 2 +-
cpukit/score/include/rtems/score/coremuteximpl.h | 2 +-
cpukit/score/src/apimutexislocked.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cpukit/score/include/rtems/score/apimutex.h b/cpukit/score/include/rtems/score/apimutex.h
index 798a8e7..628ba5d 100644
--- a/cpukit/score/include/rtems/score/apimutex.h
+++ b/cpukit/score/include/rtems/score/apimutex.h
@@ -85,7 +85,7 @@ void _API_Mutex_Lock( API_Mutex_Control *mutex );
*/
void _API_Mutex_Unlock( API_Mutex_Control *mutex );
-bool _API_Mutex_Is_locked( API_Mutex_Control *mutex );
+bool _API_Mutex_Is_locked( const API_Mutex_Control *mutex );
/** @} */
diff --git a/cpukit/score/include/rtems/score/coremuteximpl.h b/cpukit/score/include/rtems/score/coremuteximpl.h
index 969090f..63a4dba 100644
--- a/cpukit/score/include/rtems/score/coremuteximpl.h
+++ b/cpukit/score/include/rtems/score/coremuteximpl.h
@@ -351,7 +351,7 @@ void _CORE_mutex_Flush(
* @retval false The mutex is not locked.
*/
RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_locked(
- CORE_mutex_Control *the_mutex
+ const CORE_mutex_Control *the_mutex
)
{
return the_mutex->holder != NULL;
diff --git a/cpukit/score/src/apimutexislocked.c b/cpukit/score/src/apimutexislocked.c
index 1bd811a..6435fbf 100644
--- a/cpukit/score/src/apimutexislocked.c
+++ b/cpukit/score/src/apimutexislocked.c
@@ -22,7 +22,7 @@
#include <rtems/score/apimutex.h>
#include <rtems/score/coremuteximpl.h>
-bool _API_Mutex_Is_locked( API_Mutex_Control *the_mutex )
+bool _API_Mutex_Is_locked( const API_Mutex_Control *the_mutex )
{
return _CORE_mutex_Is_locked( &the_mutex->Mutex );
}
More information about the vc
mailing list