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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Mon Sep 19 00:15:39 2011 +0200

testsuite: fix warnings in mq_select.c

---

 src/testsuite/regression/native+posix/mq_select.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/testsuite/regression/native+posix/mq_select.c 
b/src/testsuite/regression/native+posix/mq_select.c
index 0763fb6..c4403bb 100644
--- a/src/testsuite/regression/native+posix/mq_select.c
+++ b/src/testsuite/regression/native+posix/mq_select.c
@@ -36,7 +36,7 @@ static const char *tunes[] = {
 
 void task(void *cookie)
 {
-       mqd_t mqd = (mqd_t) cookie;
+       mqd_t mqd = (mqd_t)(long)cookie;
        fd_set inset;
        unsigned i;
 
@@ -75,7 +75,7 @@ int main(void)
        check_unix(mq == -1 ? -1 : 0);
 
        check_native(rt_task_create(&tcb, "select_test", 0, 1, T_JOINABLE));
-       check_native(rt_task_start(&tcb, task, (void *)mq));
+       check_native(rt_task_start(&tcb, task, (void *)(long)mq));
 
        alarm(30);
 


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

Reply via email to