fix for compiler warning about strict aliasing rules
authorFrank Mori Hess <fmhess@speakeasy.net>
Sat, 19 Jun 2004 19:55:26 +0000 (19:55 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sat, 19 Jun 2004 19:55:26 +0000 (19:55 +0000)
testing/mode0_read.c

index dc4a17298f6c65840b6a738b85d039c01b48b943..0c67aa53a157f08683de7d0c7650d40d600a9fd8 100644 (file)
@@ -19,7 +19,7 @@
 int test_mode0_read(void)
 {
        comedi_trig it;
-       lsampl_t data;
+       sampl_t data;
        unsigned int chanspec;
        int save_errno;
        int ret;
@@ -31,7 +31,7 @@ int test_mode0_read(void)
        it.mode = 0;
        it.n_chan = 1;
        it.chanlist = &chanspec;
-       it.data = (sampl_t *)&data;
+       it.data = &data;
        it.n = 1;
 
        chanspec = CR_PACK(0,0,0);