On some systems, this code caused a "comparison between signed and unsigned" error. Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- util.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util.c b/util.c index 8096e29..491a107 100644 --- a/util.c +++ b/util.c @@ -1949,6 +1949,6 @@ int in_initrd(void) /* This is based on similar function in systemd. */ struct statfs s; return statfs("/", &s) >= 0 && - (s.f_type == TMPFS_MAGIC || - s.f_type == RAMFS_MAGIC); + ((unsigned long)s.f_type == TMPFS_MAGIC || + (unsigned long)s.f_type == RAMFS_MAGIC); } -- 1.7.3.4 -- 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