HomeFreeBSD

fsck_ffs: Unsign some variables and make use of reallocarray(3).

Description

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
MFC after: 2 weeks

Details

Provenance
pfgAuthored on
Reviewer
mckusick
Parents
rS317282: Rename variable for clarity
Branches
Unknown
Tags
Unknown