The branch main has been updated by vangyzen:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=9990450e17f79ca6e59866397b979a8a344cd5d4

commit 9990450e17f79ca6e59866397b979a8a344cd5d4
Author:     Eric van Gyzen <[email protected]>
AuthorDate: 2022-01-31 20:34:17 +0000
Commit:     Eric van Gyzen <[email protected]>
CommitDate: 2022-02-16 15:56:16 +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
    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);
 }
 
 /*

Reply via email to