From 9990450e17f79ca6e59866397b979a8a344cd5d4 Mon Sep 17 00:00:00 2001 From: Eric van Gyzen Date: Mon, 31 Jan 2022 14:34:17 -0600 Subject: [PATCH] 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 --- 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 18545a79ea01..93dc5cf88049 100644 --- a/sbin/newfs_msdos/mkfs_msdos.c +++ b/sbin/newfs_msdos/mkfs_msdos.c @@ -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); } /*