diff options
author | Karel Zak | 2012-01-17 16:31:45 +0100 |
---|---|---|
committer | Karel Zak | 2012-01-17 16:31:45 +0100 |
commit | 94283c9a771692c3722e3b89abb3ad0882c45029 (patch) | |
tree | 80409a0642ff1940c7be44a530610e94f2eac39f /libmount/src/optstr.c | |
parent | sfdisk: fix poor coding style (diff) | |
download | kernel-qcow2-util-linux-94283c9a771692c3722e3b89abb3ad0882c45029.tar.gz kernel-qcow2-util-linux-94283c9a771692c3722e3b89abb3ad0882c45029.tar.xz kernel-qcow2-util-linux-94283c9a771692c3722e3b89abb3ad0882c45029.zip |
libmount: fix compiler warnings [-Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/optstr.c')
-rw-r--r-- | libmount/src/optstr.c | 4 |
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) */ |