mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 02:37:15 +00:00
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:
parent
430168942f
commit
27cebb4eac
|
@ -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++);
|
||||
|
|
Loading…
Reference in a new issue