fix INSN_GTOD
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 25 Jul 2004 19:05:33 +0000 (19:05 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 25 Jul 2004 19:05:33 +0000 (19:05 +0000)
comedi/kcomedilib/kcomedilib_main.c

index 4c640bd9cc08f64b4d914f5a0757030d9e1ac148..39e3ee2ad2bb225bd31e62ea14f8c5c5c643dec7 100644 (file)
@@ -202,11 +202,10 @@ int comedi_do_insn(comedi_t *d,comedi_insn *insn)
                case INSN_GTOD:
                {
                        struct timeval tv;
-                       lsampl_t data[2];
 
                        do_gettimeofday(&tv);
-                       data[0] = tv.tv_sec;
-                       data[1] = tv.tv_usec;
+                       insn->data[0] = tv.tv_sec;
+                       insn->data[1] = tv.tv_usec;
                        ret = 2;
 
                        break;