From 1eb937d06ba61ad6f49bc680102a5105e85d0600 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 25 Jul 2004 19:05:33 +0000 Subject: [PATCH] fix INSN_GTOD --- comedi/kcomedilib/kcomedilib_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/comedi/kcomedilib/kcomedilib_main.c b/comedi/kcomedilib/kcomedilib_main.c index 4c640bd9..39e3ee2a 100644 --- a/comedi/kcomedilib/kcomedilib_main.c +++ b/comedi/kcomedilib/kcomedilib_main.c @@ -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; -- 2.26.2