mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 3 additions and 3 deletions
|
|
@ -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 a new issue