aboutsummaryrefslogtreecommitdiff
path: root/sbin/quotacheck
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2018-03-17 01:48:27 +0000
committerEd Maste <emaste@FreeBSD.org>2018-03-17 01:48:27 +0000
commit1e2b9afca9212aa3d6f9cfc02c54f739a7c7c035 (patch)
tree2a7d490a37367cf95935a2bb7b8dd3cc1a778737 /sbin/quotacheck
parent4e78ff7068e13cb32b4165fe362f8ddf81160031 (diff)
downloadsrc-1e2b9afca9212aa3d6f9cfc02c54f739a7c7c035.tar.gz
src-1e2b9afca9212aa3d6f9cfc02c54f739a7c7c035.zip
Prefix UFS symbols with UFS_ to reduce namespace pollution
Followup to r313780. Also prefix ext2's and nandfs's versions with EXT2_ and NANDFS_. Reported by: kib Reviewed by: kib, mckusick Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D9623
Notes
Notes: svn path=/head/; revision=331083
Diffstat (limited to 'sbin/quotacheck')
-rw-r--r--sbin/quotacheck/quotacheck.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c
index 7071aaf9dea5..fb485e7475f9 100644
--- a/sbin/quotacheck/quotacheck.c
+++ b/sbin/quotacheck/quotacheck.c
@@ -370,7 +370,7 @@ chkquota(char *specname, struct quotafile *qfu, struct quotafile *qfg)
for (i = 0; i < inosused; i++, ino++) {
if ((dp = getnextinode(ino)) == NULL ||
ino < UFS_ROOTINO ||
- (mode = DIP(dp, di_mode) & IFMT) == 0)
+ (mode = DIP(dp, di_mode) & UFS_IFMT) == 0)
continue;
/*
* XXX: Do not account for UIDs or GIDs that appear
@@ -405,16 +405,16 @@ chkquota(char *specname, struct quotafile *qfu, struct quotafile *qfg)
fup = addid((u_long)DIP(dp, di_gid), GRPQUOTA,
(char *)0, mntpt);
fup->fu_curinodes++;
- if (mode == IFREG || mode == IFDIR ||
- mode == IFLNK)
+ if (mode == UFS_IFREG || mode == UFS_IFDIR ||
+ mode == UFS_IFLNK)
fup->fu_curblocks += DIP(dp, di_blocks);
}
if (qfu) {
fup = addid((u_long)DIP(dp, di_uid), USRQUOTA,
(char *)0, mntpt);
fup->fu_curinodes++;
- if (mode == IFREG || mode == IFDIR ||
- mode == IFLNK)
+ if (mode == UFS_IFREG || mode == UFS_IFDIR ||
+ mode == UFS_IFLNK)
fup->fu_curblocks += DIP(dp, di_blocks);
}
}