mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
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:
parent
6cba29c09a
commit
92f2a4c820
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue