Module: xenomai-forge
Branch: master
Commit: ca857ee65f5a40e7e8b2c35f2496dbf70ab2ed2c
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=ca857ee65f5a40e7e8b2c35f2496dbf70ab2ed2c

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Nov 20 18:08:38 2011 +0100

copperplate/list: constify linked() predicate

---

 include/copperplate/private-list.h |    2 +-
 include/copperplate/shared-list.h  |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/copperplate/private-list.h 
b/include/copperplate/private-list.h
index c749c1d..d64fed8 100644
--- a/include/copperplate/private-list.h
+++ b/include/copperplate/private-list.h
@@ -73,7 +73,7 @@ static inline void pvholder_init(struct pvholder *holder)
  * XXX: pvholder_init() is mandatory if you later want to use this
  * predicate.
  */
-static inline int pvholder_linked(struct pvholder *holder)
+static inline int pvholder_linked(const struct pvholder *holder)
 {
        return !(holder->prev == holder->next &&
                 holder->prev == holder);
diff --git a/include/copperplate/shared-list.h 
b/include/copperplate/shared-list.h
index a3fe9e5..623bc30 100644
--- a/include/copperplate/shared-list.h
+++ b/include/copperplate/shared-list.h
@@ -94,7 +94,7 @@ static inline void holder_init(struct holder *holder)
        inith(holder);
 }
 
-static inline int __holder_linked(void *heap, struct holder *holder)
+static inline int __holder_linked(void *heap, const struct holder *holder)
 {
        return !(holder->prev == holder->next &&
                 holder->prev == __hoff(heap, holder));
@@ -104,7 +104,7 @@ static inline int __holder_linked(void *heap, struct holder 
*holder)
  * XXX: holder_init() is mandatory if you later want to use this
  * predicate.
  */
-static inline int holder_linked(struct holder *holder)
+static inline int holder_linked(const struct holder *holder)
 {
        return __holder_linked(__pshared_heap, holder);
 }


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to