It complains when building on s390 and i686 platform. Signed-off-by : Xiao Ni <xni@xxxxxxxxxx> --- Monitor.c | 2 +- util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Monitor.c b/Monitor.c index f19c2e5..928aa45 100644 --- a/Monitor.c +++ b/Monitor.c @@ -542,7 +542,7 @@ static int check_array(struct state *st, struct mdstat_ent *mdstat, alert("NewArray", st->devname, NULL, ainfo); } - if (st->utime == array.utime && + if (st->utime == (long)array.utime && st->failed == array.failed_disks && st->working == array.working_disks && st->spare == array.spare_disks && diff --git a/util.c b/util.c index 970d484..ccbb2bc 100644 --- a/util.c +++ b/util.c @@ -1288,7 +1288,7 @@ struct supertype *guess_super_type(int fd, enum guess_types guess_type) struct mdinfo info; st->ss->getinfo_super(st, &info, NULL); if (bestsuper == -1 || - besttime < info.array.ctime) { + besttime < (time_t)info.array.ctime) { bestsuper = i; besttime = info.array.ctime; } -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html