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
This commit is contained in:
Alfonso Gregory 2023-06-28 16:20:33 -06:00 committed by Warner Losh
parent 430168942f
commit 27cebb4eac

View file

@ -1230,7 +1230,7 @@ ilog2(int val)
static u_int32_t
newfs_random(void)
{
static int nextnum = 1;
static u_int32_t nextnum = 1;
if (Rflag)
return (nextnum++);