aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Hovland <erik@hovland.org>2008-09-30 14:05:32 -0700
committerDan Dennedy <dan@dennedy.org>2008-10-28 22:52:39 -0700
commit1e532a7f9f51fc08c5048852b31046e449002345 (patch)
tree7271fa35353d092737bd8bed57f9bd7dceade314
parent63b9d388208deef37cd80f5263e7316e8cbf1cb2 (diff)
downloadlibraw1394-1e532a7f9f51fc08c5048852b31046e449002345.tar.gz
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>
-rw-r--r--tools/testlibraw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testlibraw.c b/tools/testlibraw.c
index efd87ad..1064a38 100644
--- a/tools/testlibraw.c
+++ b/tools/testlibraw.c
@@ -180,7 +180,8 @@ int main(int argc, char **argv)
perror("failed");
continue;
}
- raw1394_loop_iterate(handle);
+ if (raw1394_loop_iterate(handle))
+ perror("failed");
}
printf("\nusing standard tag handler and synchronous calls\n");