compat_freebsd4: Add const qualifier to the local variable s inside function freebsd4_uname()

This local variable s is for iterating characters of global variable
`version`. The content of `version` is not going to be altered by
function freebsd4_uname().

MFC after:	1 week

(cherry picked from commit 92f2a4c820)
This commit is contained in:
Zhenlei Huang 2024-05-28 12:21:20 +08:00
parent 03d3230d51
commit 5fd1902b0c

View file

@ -318,7 +318,8 @@ freebsd4_uname(struct thread *td, struct freebsd4_uname_args *uap)
{
int name[2], error;
size_t len;
char *s, *us;
const char *s;
char *us;
name[0] = CTL_KERN;
name[1] = KERN_OSTYPE;