diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-01-16 15:40:54 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-01-16 15:40:54 +0200 |
commit | 2416fefc0adc6061212e5ccbf166c8c987385527 (patch) | |
tree | 086d7ac1479949dc5c707b3ec7788921c9d67c81 /ubi-utils/new-utils/src/libscan.c | |
parent | 6d9a03eb4f0f5c0b5f917d1092c4d851a392b9fb (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.c | 4 |
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) |