projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a06deb
)
Fixed do_test_for_insn_bits(), broken by validity checks added to
author
Ian Abbott
<abbotti@mev.co.uk>
Thu, 18 Dec 2008 17:23:14 +0000
(17:23 +0000)
committer
Ian Abbott
<abbotti@mev.co.uk>
Thu, 18 Dec 2008 17:23:14 +0000
(17:23 +0000)
comedi_do_insnlist(). Call comedi_ioctl() instead of comedi_do_insnlist().
lib/filler.c
patch
|
blob
|
history
diff --git
a/lib/filler.c
b/lib/filler.c
index aa1f6c38aa8eb58fbc328736ebe48fe7ac21cfe1..10a42b8fc2f98c0dd4a806b66a851765a27834c4 100644
(file)
--- a/
lib/filler.c
+++ b/
lib/filler.c
@@
-350,7
+350,7
@@
static int do_test_for_insn_bits(comedi_t *dev,unsigned int subdevice)
insn.subdev = subdevice;
memset(data, 0, insn.n * sizeof(data[0]));
- ret = comedi_
do_insnlist(dev,
&il);
+ ret = comedi_
ioctl(dev->fd, COMEDI_INSNLIST,
&il);
if(ret<0 && (errno==EINVAL || errno==EIO)){
return 0;