summaryrefslogtreecommitdiffstats
path: root/libmount/src/optstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmount/src/optstr.c')
-rw-r--r--libmount/src/optstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmount/src/optstr.c b/libmount/src/optstr.c
index 7b1034e5d..1a1c86c54 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) */