diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-02-19 14:42:11 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-02-19 14:42:11 +0100 |
commit | 37dff886f4d7b4513bc2772b33455caf2a375065 (patch) | |
tree | efcc833395b23e7345606414b7d4c8b09063ce55 /rbutil | |
parent | 2dbb17d0d6230194b3373c9e61bb70cacd29a972 (diff) | |
download | rockbox-37dff886f4d7b4513bc2772b33455caf2a375065.tar.gz rockbox-37dff886f4d7b4513bc2772b33455caf2a375065.zip |
Fix warn_unused_result warning.
A warning triggered by attribute warn_unused_result cannot be suppressed by
casting the result to void. Properly check the return value and pass it to the
caller.
Fix the check for the number of bytes written. The return value of fread is the
number of items written, not the number of bytes.
Change-Id: I8c60e23ac549e22fd3f7dd5c51c5a8e6fc517cb1
Diffstat (limited to 'rbutil')
0 files changed, 0 insertions, 0 deletions