From: Frank Mori Hess Date: Sun, 25 Jul 2004 19:05:33 +0000 (+0000) Subject: fix INSN_GTOD X-Git-Tag: r0_7_69~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1eb937d06ba61ad6f49bc680102a5105e85d0600;p=comedi.git fix INSN_GTOD --- 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;