git: 1b3f88bc8095 - stable/14 - linux(4): Add const qualifier to the value parameter of function handle_string()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 May 2024 04:22:03 UTC
The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=1b3f88bc809526cc7cd22c88b4fdaadf1a2e5e75 commit 1b3f88bc809526cc7cd22c88b4fdaadf1a2e5e75 Author: Zhenlei Huang <zlei@FreeBSD.org> AuthorDate: 2024-05-28 04:21:20 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> CommitDate: 2024-05-28 04:21:20 +0000 linux(4): Add const qualifier to the value parameter of function handle_string() The content that `value` point to is not going to be altered by function handle_string(). MFC after: 1 week (cherry picked from commit 68c890b4433d3655c7df91cc43f89f4d6a8b35e4) --- sys/compat/linux/linux_sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_sysctl.c b/sys/compat/linux/linux_sysctl.c index 65c64a7ba563..97341c051af7 100644 --- a/sys/compat/linux/linux_sysctl.c +++ b/sys/compat/linux/linux_sysctl.c @@ -74,7 +74,7 @@ LIN_SDT_PROBE_DEFINE1(sysctl, linux_sysctl, unsupported_sysctl, "char *"); #ifdef LINUX_LEGACY_SYSCALLS static int -handle_string(struct l___sysctl_args *la, char *value) +handle_string(struct l___sysctl_args *la, const char *value) { int error;