1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-23 07:31:31 +00:00

newfs_msdos: fix type of kern.maxphys

The type of the kern.maxphys sysctl OID is now ulong.  Change the
local variable type to match.

Reviewed by:	delphij, emaste
MFC after:	1 week
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D34116
This commit is contained in:
Eric van Gyzen 2022-01-31 14:34:17 -06:00
parent 995cba5a0c
commit 9990450e17

View File

@ -842,10 +842,10 @@ check_mounted(const char *fname, mode_t mode)
static ssize_t
getchunksize(void)
{
static int chunksize;
static ssize_t chunksize;
if (chunksize != 0)
return ((ssize_t)chunksize);
return (chunksize);
#ifdef KERN_MAXPHYS
int mib[2];
@ -874,7 +874,7 @@ getchunksize(void)
assert(powerof2(chunksize));
assert(chunksize > MAXBPS);
return ((ssize_t)chunksize);
return (chunksize);
}
/*