Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Aug 2023 15:24:13 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 301e69218ccb - main - ncthwm: Use `sysctl_handle_16` to match CTLTYPE_U16
Message-ID:  <202308041524.374FODwJ025587@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=301e69218ccbc314830fb989c852ae74ef2073d9

commit 301e69218ccbc314830fb989c852ae74ef2073d9
Author:     Stéphane Rochoy <stephane.rochoy@stormshield.eu>
AuthorDate: 2023-08-04 09:31:33 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-08-04 15:23:42 +0000

    ncthwm: Use `sysctl_handle_16` to match CTLTYPE_U16
    
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/810
---
 sys/dev/ncthwm/ncthwm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/ncthwm/ncthwm.c b/sys/dev/ncthwm/ncthwm.c
index b62dff68f171..813b8474bdef 100644
--- a/sys/dev/ncthwm/ncthwm.c
+++ b/sys/dev/ncthwm/ncthwm.c
@@ -158,7 +158,7 @@ ncthwm_query_fan_speed(SYSCTL_HANDLER_ARGS)
 	NCTHWM_VERBOSE_PRINTF(sc->dev, "%s: read %u from bank %u offset 0x%x-0x%x\n",
 		fan->name, val, sc->nctdevp->fan_bank, fan->high_byte_offset, fan->low_byte_offset);
 
-	return (sysctl_handle_int(oidp, &val, 0, req));
+	return (sysctl_handle_16(oidp, &val, 0, req));
 }
 
 static int



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308041524.374FODwJ025587>