aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include/chschd.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/include/chschd.h')
-rw-r--r--os/rt/include/chschd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/rt/include/chschd.h b/os/rt/include/chschd.h
index c106dd9b0..78fac0004 100644
--- a/os/rt/include/chschd.h
+++ b/os/rt/include/chschd.h
@@ -617,10 +617,10 @@ static inline void queue_init(threads_queue_t *tqp) {
*
* @notapi
*/
-static inline bool queue_isempty(threads_queue_t *tqp) {
+static inline bool queue_isempty(const threads_queue_t *tqp) {
/*lint -save -e9087 -e740 [11.3, 1.3] Cast required by list handling.*/
- return (bool)(tqp->p_next == (thread_t *)tqp);
+ return (bool)(tqp->p_next == (const thread_t *)tqp);
/*lint -restore*/
}
@@ -632,10 +632,10 @@ static inline bool queue_isempty(threads_queue_t *tqp) {
*
* @notapi
*/
-static inline bool queue_notempty(threads_queue_t *tqp) {
+static inline bool queue_notempty(const threads_queue_t *tqp) {
/*lint -save -e9087 -e740 [11.3, 1.3] Cast required by list handling.*/
- return (bool)(tqp->p_next != (thread_t *)tqp);
+ return (bool)(tqp->p_next != (const thread_t *)tqp);
/*lint -restore*/
}