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

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Fri Sep 18 11:14:06 2009 +0200

rtipc: Fix 64-bit related warnings

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 ksrc/drivers/ipc/internal.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ksrc/drivers/ipc/internal.h b/ksrc/drivers/ipc/internal.h
index 737038e..296a988 100644
--- a/ksrc/drivers/ipc/internal.h
+++ b/ksrc/drivers/ipc/internal.h
@@ -70,12 +70,12 @@ static inline void *rtipc_context_to_state(struct 
rtdm_dev_context *context)
 
 static inline void *rtipc_fd2map(int fd)
 {
-       return (void *)(fd + 1);
+       return (void *)(long)(fd + 1);
 }
 
 static inline int rtipc_map2fd(void *p)
 {
-       return (int)(p) - 1;
+       return (long)p - 1;
 }
 
 static inline nanosecs_rel_t rtipc_timeval_to_ns(const struct timeval *tv)


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

Reply via email to