From: Frank Mori Hess Date: Tue, 2 May 2006 02:09:02 +0000 (+0000) Subject: Patch from abbotti@mev.co.uk (Ian Abbott): X-Git-Tag: v0_8_0~71 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=44d71a63cfbe74b80924a5c90626382708cf5035;p=comedilib.git Patch from abbotti@mev.co.uk (Ian Abbott): Fixes compile error with gcc 2.96. --- 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