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
This commit is contained in:
Zhenlei Huang 2024-05-20 12:02:33 +08:00
parent 92f2a4c820
commit 68c890b443

View file

@ -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;