summaryrefslogtreecommitdiff
path: root/tools/bluemoon.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-12-28 13:14:19 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2014-12-28 20:18:42 +0200
commitfb8d2433c35f5dbc7375515c7cf698a0e64813e3 (patch)
tree00bb019706fced5fbf2f9febe130790e94a8f795 /tools/bluemoon.c
parent40f7829b88a10fb924aa1d6246c8635afd9bdac8 (diff)
downloadbluez-fb8d2433c35f5dbc7375515c7cf698a0e64813e3.tar.gz
tools/bluemoon: Fix compilation error/warning
This patch fixes the following error/warning: CC tools/bluemoon.o tools/bluemoon.c: In function ‘analyze_firmware’: tools/bluemoon.c:813:10: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if (len != le32_to_cpu(css->size) * 4) { ^ cc1: all warnings being treated as errors
Diffstat (limited to 'tools/bluemoon.c')
-rw-r--r--tools/bluemoon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bluemoon.c b/tools/bluemoon.c
index 83c76a4d1..1fd516af5 100644
--- a/tools/bluemoon.c
+++ b/tools/bluemoon.c
@@ -810,7 +810,7 @@ static void analyze_firmware(const char *path)
printf("\n");
- if (len != le32_to_cpu(css->size) * 4) {
+ if ((size_t) len != le32_to_cpu(css->size) * 4) {
fprintf(stderr, "CSS.size does not match file length\n");
goto done;
}