Module: xenomai-rpm
Branch: for-upstream
Commit: d965b0395febd76cfaf4811db98e63cb1b862df7
URL:    
http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=d965b0395febd76cfaf4811db98e63cb1b862df7

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Sep  6 15:19:03 2010 +0200

nucleus: please C++ parsers

Implicit conversion of void * to a destination pointer type is not
allowed by the ISO/C++ standard. Add the noisy cast to please C++
parsers for this header.

---

 include/nucleus/thread.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/nucleus/thread.h b/include/nucleus/thread.h
index 1867915..5fc913a 100644
--- a/include/nucleus/thread.h
+++ b/include/nucleus/thread.h
@@ -428,7 +428,7 @@ int xnthread_register(struct xnthread *thread, const char 
*name)
 static inline
 struct xnthread *xnthread_lookup(xnhandle_t threadh)
 {
-       struct xnthread *thread = xnregistry_lookup(threadh);
+       struct xnthread *thread = (struct xnthread *)xnregistry_lookup(threadh);
        return (thread && xnthread_handle(thread) == threadh) ? thread : NULL;
 }
 


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

Reply via email to