FreeBSD: Add const qualifier to members of struct opensolaris_utsname

These members have directly references to the global variables
exposed by the kernel. They are not going to be changed by this
kernel module.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Zhenlei Huang <zlei@FreeBSD.org>
Closes #16210
This commit is contained in:
Zhenlei Huang
2024-05-31 00:58:20 +08:00
committed by Tony Hutter
parent 1ba5b2ef8c
commit ba4e582a67
2 changed files with 8 additions and 9 deletions
+5 -5
View File
@@ -45,11 +45,11 @@
#define F_SEEK_HOLE FIOSEEKHOLE
struct opensolaris_utsname {
char *sysname;
char *nodename;
char *release;
char version[32];
char *machine;
const char *sysname;
const char *nodename;
const char *release;
char version[32];
const char *machine;
};
#define task_io_account_read(n)