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

View file

@ -315,7 +315,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;