git: 1fd2752f6baa - stable/13 - newfs_msdos: fix type of kern.maxphys
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Jul 2022 13:52:34 UTC
The branch stable/13 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=1fd2752f6baac7a7a491f871a72eba34e7a628fd
commit 1fd2752f6baac7a7a491f871a72eba34e7a628fd
Author: Eric van Gyzen <vangyzen@FreeBSD.org>
AuthorDate: 2022-01-31 20:34:17 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-07-27 13:50:52 +0000
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
Sponsored by: Dell EMC Isilon
(cherry picked from commit 9990450e17f79ca6e59866397b979a8a344cd5d4)
---
sbin/newfs_msdos/mkfs_msdos.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sbin/newfs_msdos/mkfs_msdos.c b/sbin/newfs_msdos/mkfs_msdos.c
index a3a86bd7d233..13a804c82625 100644
--- a/sbin/newfs_msdos/mkfs_msdos.c
+++ b/sbin/newfs_msdos/mkfs_msdos.c
@@ -844,10 +844,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];
@@ -876,7 +876,7 @@ getchunksize(void)
assert(powerof2(chunksize));
assert(chunksize > MAXBPS);
- return ((ssize_t)chunksize);
+ return (chunksize);
}
/*