From 1e532a7f9f51fc08c5048852b31046e449002345 Mon Sep 17 00:00:00 2001 From: Erik Hovland Date: Tue, 30 Sep 2008 14:05:32 -0700 Subject: [PATCH] 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 Signed-off-by: Dan Dennedy --- tools/testlibraw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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");