projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e2bc0f
)
Patch from abbotti@mev.co.uk (Ian Abbott):
author
Frank Mori Hess
<fmhess@speakeasy.net>
Tue, 2 May 2006 02:09:02 +0000
(
02:09
+0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Tue, 2 May 2006 02:09:02 +0000
(
02:09
+0000)
Fixes compile error with gcc 2.96.
demo/ao_mmap.c
patch
|
blob
|
history
diff --git
a/demo/ao_mmap.c
b/demo/ao_mmap.c
index f4b65d9aa5879849874f563b4aa95058043f21ed..5da1464dbcce903cbea7ff0c96bd0c17c786fe66 100644
(file)
--- 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