projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7961418
)
replaced call to comedi_get_front_count() with call to identical comedi_get_buffer_of...
author
Frank Mori Hess
<fmhess@speakeasy.net>
Tue, 16 Apr 2002 20:51:56 +0000
(20:51 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Tue, 16 Apr 2002 20:51:56 +0000
(20:51 +0000)
since that is the function that is actually declared in comedilib.h
demo/mmap.c
patch
|
blob
|
history
diff --git
a/demo/mmap.c
b/demo/mmap.c
index 2f18cf49de8c61f331ce5f6c15eb646d0ef6e985..90b8d3179549748de3362c2ddc01ae27c64f3489 100644
(file)
--- a/
demo/mmap.c
+++ b/
demo/mmap.c
@@
-24,8
+24,6
@@
#include <sys/mman.h>
#include "examples.h"
-int comedi_get_front_count(comedi_t *it, unsigned int subdev);
-
unsigned int chanlist[256];
void *map;
@@
-83,7
+81,7
@@
int main(int argc, char *argv[])
back = 0;
while(1){
- front = comedi_get_
front_coun
t(dev,subdevice);
+ front = comedi_get_
buffer_offse
t(dev,subdevice);
if(verbose)fprintf(stderr,"front = %d, back = %d\n",front,back);
if(front<back)break;
if(front==back){