Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Aug 2025 14:58:38 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 406fffde9c45 - main - syscalls: make __sysctl's first argument const
Message-ID:  <202508011458.571EwcmQ015236@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=406fffde9c45a3302fdb5f971f30b62cabc4801e

commit 406fffde9c45a3302fdb5f971f30b62cabc4801e
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-08-01 14:14:12 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-08-01 14:54:12 +0000

    syscalls: make __sysctl's first argument const
    
    This matches the sysctl(3) prototype.
    
    Reviewed by:    kib
    Differential Revision:  https://reviews.freebsd.org/D51669
---
 sys/kern/syscalls.master | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index 90559fab6086..a8815afee866 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -1223,7 +1223,7 @@
 	}
 202	AUE_SYSCTL	STD|CAPENABLED {
 		int __sysctl(
-		    _In_reads_(namelen) int *name,
+		    _In_reads_(namelen) const int *name,
 		    u_int namelen,
 		    _Out_writes_bytes_opt_(*oldlenp) void *old,
 		    _Inout_opt_ size_t *oldlenp,



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