diff options
author | pfg <pfg@FreeBSD.org> | 2016-05-01 02:24:05 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-05-01 02:24:05 +0000 |
commit | 99c72370d143d76721d8a3da55177b362925bac6 (patch) | |
tree | 40e161dbc2a5b51098c923f7ba5378838673b0f2 /sbin/fsck_ffs/suj.c | |
parent | 212ce360b69cebcd06dfe2e5569bd3bbd96fb734 (diff) | |
download | FreeBSD-src-99c72370d143d76721d8a3da55177b362925bac6.zip FreeBSD-src-99c72370d143d76721d8a3da55177b362925bac6.tar.gz |
sbin: ake use of our rounddown() macro when sys/param.h is available.
No functional change.
Diffstat (limited to 'sbin/fsck_ffs/suj.c')
-rw-r--r-- | sbin/fsck_ffs/suj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/suj.c b/sbin/fsck_ffs/suj.c index 58949c9..b265dfc 100644 --- a/sbin/fsck_ffs/suj.c +++ b/sbin/fsck_ffs/suj.c @@ -911,7 +911,7 @@ ino_isat(ino_t parent, off_t diroff, ino_t child, int *mode, int *isdot) * certain we hit a valid record and not some junk in the middle * of a file name. Stop when we reach or pass the expected offset. */ - dpoff = (doff / DIRBLKSIZ) * DIRBLKSIZ; + dpoff = rounddown(doff, DIRBLKSIZ); do { dp = (struct direct *)&block[dpoff]; if (dpoff == doff) |