mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 03:49:02 +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:
parent
995cba5a0c
commit
9990450e17
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user