From 67319a9e99c5839bd12f09093f70e348c8cefe4c Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sat, 19 Jun 2004 19:55:26 +0000 Subject: [PATCH] fix for compiler warning about strict aliasing rules --- testing/mode0_read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/mode0_read.c b/testing/mode0_read.c index dc4a172..0c67aa5 100644 --- a/testing/mode0_read.c +++ b/testing/mode0_read.c @@ -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); -- 2.26.2