From 2a637ef62c4355e1124c60f3cc4722e7f1606f32 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 16 Apr 2002 20:51:56 +0000 Subject: [PATCH] replaced call to comedi_get_front_count() with call to identical comedi_get_buffer_offset() since that is the function that is actually declared in comedilib.h --- demo/mmap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/demo/mmap.c b/demo/mmap.c index 2f18cf4..90b8d31 100644 --- a/demo/mmap.c +++ b/demo/mmap.c @@ -24,8 +24,6 @@ #include #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_count(dev,subdevice); + front = comedi_get_buffer_offset(dev,subdevice); if(verbose)fprintf(stderr,"front = %d, back = %d\n",front,back); if(front