summaryrefslogtreecommitdiff
path: root/ubi-utils/new-utils/src/libscan.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-01-16 15:40:54 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-01-16 15:40:54 +0200
commit2416fefc0adc6061212e5ccbf166c8c987385527 (patch)
tree086d7ac1479949dc5c707b3ec7788921c9d67c81 /ubi-utils/new-utils/src/libscan.c
parent6d9a03eb4f0f5c0b5f917d1092c4d851a392b9fb (diff)
ubi-utils: fix compilation warnings
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/new-utils/src/libscan.c')
-rw-r--r--ubi-utils/new-utils/src/libscan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ubi-utils/new-utils/src/libscan.c b/ubi-utils/new-utils/src/libscan.c
index 3427498..da13b1b 100644
--- a/ubi-utils/new-utils/src/libscan.c
+++ b/ubi-utils/new-utils/src/libscan.c
@@ -154,7 +154,7 @@ int ubi_scan(struct mtd_info *mtd, struct ubi_scan_info **info, int verbose)
}
} else {
- if (be32_to_cpu(hdr.vid_hdr_offset) != si->vid_hdr_offs) {
+ if ((int)be32_to_cpu(hdr.vid_hdr_offset) != si->vid_hdr_offs) {
if (pr)
printf("\n");
if (v)
@@ -168,7 +168,7 @@ int ubi_scan(struct mtd_info *mtd, struct ubi_scan_info **info, int verbose)
si->ec[eb] = EB_CORRUPTED;
continue;
}
- if (be32_to_cpu(hdr.data_offset) != si->data_offs) {
+ if ((int)be32_to_cpu(hdr.data_offset) != si->data_offs) {
if (pr)
printf("\n");
if (v)