git: 301e69218ccb - main - ncthwm: Use `sysctl_handle_16` to match CTLTYPE_U16

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Fri, 04 Aug 2023 15:24:13 UTC
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