Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2024 04:04:02 GMT
From:      Zhenlei Huang <zlei@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 68c890b4433d - main - linux(4): Add const qualifier to the value parameter of function handle_string()
Message-ID:  <202405200404.44K442BH080312@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=68c890b4433d3655c7df91cc43f89f4d6a8b35e4

commit 68c890b4433d3655c7df91cc43f89f4d6a8b35e4
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-05-20 04:02:33 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-05-20 04:02:33 +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
---
 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;
 



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