summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2013-12-11 19:25:17 +0000
committerpfg <pfg@FreeBSD.org>2013-12-11 19:25:17 +0000
commitde938e4059cac64f6b3db3f757aeed24ca149f05 (patch)
treea797eda1cd0feac0206bc7781083c6804060cd74 /sbin/fsck_ffs
parent4c7f14937f70cb9c4c3cc0f3179a5ee639a7152f (diff)
downloadFreeBSD-src-de938e4059cac64f6b3db3f757aeed24ca149f05.zip
FreeBSD-src-de938e4059cac64f6b3db3f757aeed24ca149f05.tar.gz
MFC r256448, r257029;
Make di_blocks unsigned in UFS1 as is the case already for UFS2. Most of the code between UFS1 and UFS2 is shared so this change is pretty safe. Not only this makes UFS1 and 2 consistent but it also matches what NetBSD and MacOS X have for some years now. UFS2: make di_extsize unsigned. di_extsize is the EA size and as such it should be unsigned. Adjust related types for consistency. Reviewed by: mckusick
Diffstat (limited to 'sbin/fsck_ffs')
-rw-r--r--sbin/fsck_ffs/ea.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/ea.c b/sbin/fsck_ffs/ea.c
index 3517011..e9c3fce 100644
--- a/sbin/fsck_ffs/ea.c
+++ b/sbin/fsck_ffs/ea.c
@@ -65,7 +65,7 @@ eascan(struct inodesc *idesc, struct ufs2_dinode *dp)
char dbuf[DIRBLKSIZ];
printf("Inode %ju extsize %ju\n",
- (intmax_t)idesc->id_number, (intmax_t)dp->di_extsize);
+ (intmax_t)idesc->id_number, (uintmax_t)dp->di_extsize);
if (dp->di_extsize == 0)
return 0;
if (dp->di_extsize <= sblock.fs_fsize)
OpenPOWER on IntegriCloud