mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 10:40:19 -04: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
(cherry picked from commit 92f2a4c820)
This commit is contained in:
parent
03d3230d51
commit
5fd1902b0c
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue