summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs/fsck.h
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2017-05-06 02:39:11 +0000
committerpfg <pfg@FreeBSD.org>2017-05-06 02:39:11 +0000
commit5d76adac38d9c07945c337413ccb2d812df59b4a (patch)
treea23ceb619b260fc84b10c8b67ffc7844651817c4 /sbin/fsck_ffs/fsck.h
parent10f49ec8d59934616b47d4694057bdb95b38b0b4 (diff)
downloadFreeBSD-src-5d76adac38d9c07945c337413ccb2d812df59b4a.zip
FreeBSD-src-5d76adac38d9c07945c337413ccb2d812df59b4a.tar.gz
MFC r317283:
fsck_ffs: Unsign some variables and make use of reallocarray(3). Instead of casting listmax and numdirs to unsigned values just define them as unsigned and avoid the casts. Use reallocarray(3). While here, fs_ncg is already unsigned so the cast is unnecessary. Reviewed by: mckusick
Diffstat (limited to 'sbin/fsck_ffs/fsck.h')
-rw-r--r--sbin/fsck_ffs/fsck.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/fsck.h b/sbin/fsck_ffs/fsck.h
index 27f0889..76cbbad 100644
--- a/sbin/fsck_ffs/fsck.h
+++ b/sbin/fsck_ffs/fsck.h
@@ -282,7 +282,8 @@ struct inoinfo {
u_int i_numblks; /* size of block array in bytes */
ufs2_daddr_t i_blks[1]; /* actually longer */
} **inphead, **inpsort;
-extern long numdirs, dirhash, listmax, inplast;
+extern long dirhash, inplast;
+extern unsigned long numdirs, listmax;
extern long countdirs; /* number of directories we actually found */
#define MIBSIZE 3 /* size of fsck sysctl MIBs */
OpenPOWER on IntegriCloud