projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a217137
)
Added debug_ptr(). Fixed do_test_for_cmd()
author
David Schleef
<ds@schleef.org>
Tue, 10 Jul 2001 22:31:16 +0000
(22:31 +0000)
committer
David Schleef
<ds@schleef.org>
Tue, 10 Jul 2001 22:31:16 +0000
(22:31 +0000)
lib/filler.c
patch
|
blob
|
history
diff --git
a/lib/filler.c
b/lib/filler.c
index 0bc8e33e3fa35e56d21699e5a3b84b059c603de7..b3a4f5c0d928dddb6d9d8ac55378061a005e1aa0 100644
(file)
--- a/
lib/filler.c
+++ b/
lib/filler.c
@@
-52,6
+52,8
@@
int get_subdevices(comedi_t *it)
subdevice *r;
s=malloc(sizeof(comedi_subdinfo)*it->n_subdevices);
+ debug_ptr(s);
+
ret=ioctl_subdinfo(it->fd,s);
debug_int(ret);
@@
-146,7
+148,7
@@
static int do_test_for_cmd(comedi_t *dev,unsigned int subdevice)
memset(&it,0,sizeof(it));
- it.subdev =
0
;
+ it.subdev =
subdevice
;
it.start_src = TRIG_ANY;
it.scan_begin_src = TRIG_ANY;
it.convert_src = TRIG_ANY;