From 44d71a63cfbe74b80924a5c90626382708cf5035 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 2 May 2006 02:09:02 +0000 Subject: [PATCH] Patch from abbotti@mev.co.uk (Ian Abbott): Fixes compile error with gcc 2.96. --- demo/ao_mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/ao_mmap.c b/demo/ao_mmap.c index f4b65d9..5da1464 100644 --- a/demo/ao_mmap.c +++ b/demo/ao_mmap.c @@ -171,12 +171,12 @@ int main(int argc, char *argv[]) while(1) { int bytes_marked = comedi_get_buffer_contents(dev,subdevice); + int bytes_unmarked = size - bytes_marked; if(bytes_marked < 0) { comedi_perror("comedi_get_buffer_contents"); exit(1); } - int bytes_unmarked = size - bytes_marked; if(bytes_unmarked > 0) { // this keeps comedi from reporting a buffer underrun -- 2.26.2