Makes sure to check any return values

The return value of any function should be checked if that function
uses the return value to provide some sort of status information.

Signed-off-by: Erik Hovland <erik@hovland.org>
Signed-off-by: Dan Dennedy <dan@dennedy.org>
This commit is contained in:
Erik Hovland 2008-09-30 14:05:32 -07:00 committed by Dan Dennedy
parent 63b9d38820
commit 1e532a7f9f
1 changed files with 2 additions and 1 deletions

View File

@ -180,7 +180,8 @@ int main(int argc, char **argv)
perror("failed"); perror("failed");
continue; continue;
} }
raw1394_loop_iterate(handle); if (raw1394_loop_iterate(handle))
perror("failed");
} }
printf("\nusing standard tag handler and synchronous calls\n"); printf("\nusing standard tag handler and synchronous calls\n");