diff options
| author | 2008-09-30 14:05:32 -0700 | |
|---|---|---|
| committer | 2008-10-28 22:52:39 -0700 | |
| commit | 1e532a7f9f51fc08c5048852b31046e449002345 (patch) | |
| tree | 7271fa35353d092737bd8bed57f9bd7dceade314 /tools/testlibraw.c | |
| parent | Makes sure a value is returned by the function. (diff) | |
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>
Diffstat (limited to '')
| -rw-r--r-- | tools/testlibraw.c | 3 |
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"); |
