aboutsummaryrefslogtreecommitdiff
path: root/sbin/quotacheck/quotacheck.c
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2018-03-17 12:59:55 +0000
committerEd Maste <emaste@FreeBSD.org>2018-03-17 12:59:55 +0000
commitd8ba45e21358ccd9c50991e62cf863bc19699756 (patch)
tree45c6abbd5a9b767ea88e1ebc76e9d804b6a87cd7 /sbin/quotacheck/quotacheck.c
parent7651c3af83d9d83f9b6f18bb55eba52fe1657e55 (diff)
downloadsrc-d8ba45e21358ccd9c50991e62cf863bc19699756.tar.gz
src-d8ba45e21358ccd9c50991e62cf863bc19699756.zip
Revert r313780 (UFS_ prefix)
Notes
Notes: svn path=/head/; revision=331095
Diffstat (limited to 'sbin/quotacheck/quotacheck.c')
-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 fb485e7475f9..7071aaf9dea5 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) & UFS_IFMT) == 0)
+ (mode = DIP(dp, di_mode) & 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 == UFS_IFREG || mode == UFS_IFDIR ||
- mode == UFS_IFLNK)
+ if (mode == IFREG || mode == IFDIR ||
+ mode == 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 == UFS_IFREG || mode == UFS_IFDIR ||
- mode == UFS_IFLNK)
+ if (mode == IFREG || mode == IFDIR ||
+ mode == IFLNK)
fup->fu_curblocks += DIP(dp, di_blocks);
}
}