HomeFreeBSD

newfs: nextnum should be a u_int32_t, not an int

Description

newfs: nextnum should be a u_int32_t, not an int

The function that uses nextnum expects to return a u_int32_t, not a mere
int, so let's make nextnum a u_int32_t instead.

Note: retained current u_int32_t style, since the rest of the file uses
it.

Reviewed by: imp, mckusick
Pull Request: https://github.com/freebsd/freebsd-src/pull/734

Details

Provenance
gfunni234_gmail.comAuthored on Jun 28 2023, 10:20 PM
impCommitted on Jun 28 2023, 10:26 PM
Parents
rG430168942f2b: newfs: prefer unsigned index over signed
Branches
Unknown
Tags
Unknown