Patch from abbotti@mev.co.uk (Ian Abbott):
Fixes compile error with gcc 2.96.
This commit is contained in:
parent
3e2bc0f15a
commit
44d71a63cf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue