From: Karel Zak Date: Tue, 17 Jan 2012 15:31:45 +0000 (+0100) Subject: libmount: fix compiler warnings [-Wsign-compare] X-Git-Tag: v2.21-rc1~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94283c9a771692c3722e3b89abb3ad0882c45029;p=thirdparty%2Futil-linux.git libmount: fix compiler warnings [-Wsign-compare] Signed-off-by: Karel Zak --- diff --git a/libmount/src/optstr.c b/libmount/src/optstr.c index 7b1034e5d8..1a1c86c540 100644 --- a/libmount/src/optstr.c +++ b/libmount/src/optstr.c @@ -700,7 +700,7 @@ int mnt_optstr_apply_flags(char **optstr, unsigned long flags, continue; if (ent->id == MS_RDONLY || (ent->mask & MNT_INVERT) || - (fl & ent->id) != ent->id) { + (fl & ent->id) != (unsigned long) ent->id) { char *end = val ? val + valsz : name + namesz; @@ -724,7 +724,7 @@ int mnt_optstr_apply_flags(char **optstr, unsigned long flags, for (ent = map; ent && ent->name; ent++) { if ((ent->mask & MNT_INVERT) || ent->id == 0 - || (fl & ent->id) != ent->id) + || (fl & ent->id) != (unsigned long) ent->id) continue; /* don't add options which require values (e.g. offset=%d) */