diff options
author | bz <bz@FreeBSD.org> | 2010-03-27 17:57:17 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2010-03-27 17:57:17 +0000 |
commit | a8051545e1d9a2e759908f9d3cc717c6663b1b21 (patch) | |
tree | f0c4b96a8122d5933c6149d4363eaa9e5ace26b2 /sbin | |
parent | f52fbb6b88acde6f98c6542dede00ed9e96d451b (diff) | |
download | FreeBSD-src-a8051545e1d9a2e759908f9d3cc717c6663b1b21.zip FreeBSD-src-a8051545e1d9a2e759908f9d3cc717c6663b1b21.tar.gz |
MFC r204840:
As statfs.f_flags are uint64_t the local variables should be as well.
We'll start noticing this with the next flag introduced as the lower
32bit are all used.
While here compare to 0 explicitly [1].
Suggested by: kib [1]
Reviewed by: kib
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mount/mount.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 0bd5533..1a6903d 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -91,7 +91,7 @@ char *flags2opts(int); /* Map from mount options to printable formats. */ static struct opt { - int o_opt; + uint64_t o_opt; const char *o_name; } optnames[] = { { MNT_ASYNC, "asynchronous" }, @@ -611,7 +611,7 @@ mountfs(const char *vfstype, const char *spec, const char *name, int flags, void prmount(struct statfs *sfp) { - int flags; + uint64_t flags; unsigned int i; struct opt *o; struct passwd *pw; @@ -620,7 +620,7 @@ prmount(struct statfs *sfp) sfp->f_fstypename); flags = sfp->f_flags & MNT_VISFLAGMASK; - for (o = optnames; flags && o->o_opt; o++) + for (o = optnames; flags != 0 && o->o_opt != 0; o++) if (flags & o->o_opt) { (void)printf(", %s", o->o_name); flags &= ~o->o_opt; |