projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fefad4
)
fix INSN_GTOD
author
Frank Mori Hess
<fmhess@speakeasy.net>
Sun, 25 Jul 2004 19:05:33 +0000
(19:05 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Sun, 25 Jul 2004 19:05:33 +0000
(19:05 +0000)
comedi/kcomedilib/kcomedilib_main.c
patch
|
blob
|
history
diff --git
a/comedi/kcomedilib/kcomedilib_main.c
b/comedi/kcomedilib/kcomedilib_main.c
index 4c640bd9cc08f64b4d914f5a0757030d9e1ac148..39e3ee2ad2bb225bd31e62ea14f8c5c5c643dec7 100644
(file)
--- 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;