Module: xenomai-abe
Branch: analogy
Commit: 52f0beabd079929bcac4bccf07847ab154e409f1
URL:    
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=52f0beabd079929bcac4bccf07847ab154e409f1

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Sun Jan 24 23:02:29 2010 +0100

analogy: [pcimio] fix a bug in the management of attach options

---

 ksrc/drivers/analogy/national_instruments/pcimio.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ksrc/drivers/analogy/national_instruments/pcimio.c 
b/ksrc/drivers/analogy/national_instruments/pcimio.c
index b4f513c..2df47a7 100644
--- a/ksrc/drivers/analogy/national_instruments/pcimio.c
+++ b/ksrc/drivers/analogy/national_instruments/pcimio.c
@@ -1476,9 +1476,9 @@ static int pcimio_attach(a4l_dev_t *dev, a4l_lnkdesc_t 
*arg)
                bus = slot = 0;
        else {
                bus = arg->opts_size >= sizeof(unsigned long) ?
-                       ((int* )arg->opts)[0] : 0;
+                       ((unsigned long *)arg->opts)[0] : 0;
                slot = arg->opts_size >= sizeof(unsigned long) * 2 ?
-                       ((int* )arg->opts)[1] : 0;
+                       ((unsigned long *)arg->opts)[1] : 0;
        }
 
        for(i = 0; i < n_pcimio_boards && mite == NULL; i++) {


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

Reply via email to