Skip to contentSkip to conversation

rtipc: Fix 64-bit related warnings

GIT PULL Jan Kiszka 1 participant 1 message Sep 18, 2009

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

The following changes since commit 13d66eb4c8f1648614095d43dd529a3c98fc5278:
Philippe Gerum (1):

        x86: upgrade I-pipe support to 2.6.31-x86-2.4-05

are available in the git repository at:

git://xenomai.org/xenomai-jki.git for-upstream

Jan Kiszka (1):
rtipc: Fix 64-bit related warnings

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

---

rtipc: Fix 64-bit related warnings

ksrc/drivers/ipc/internal.h +2 -2
index 737038e..296a988 100644
@@ -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)