Make trap_msg array constant as well.
Suggested by: tijl Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
f61f5a0b2d
commit
8b49f4dd80
@ -119,7 +119,7 @@ static bool trap_user_dtrace(struct trapframe *,
|
||||
#endif
|
||||
|
||||
static const char UNKNOWN[] = "unknown";
|
||||
static const char *trap_msg[] = {
|
||||
static const char *const trap_msg[] = {
|
||||
[0] = UNKNOWN, /* unused */
|
||||
[T_PRIVINFLT] = "privileged instruction fault",
|
||||
[2] = UNKNOWN, /* unused */
|
||||
|
Loading…
Reference in New Issue
Block a user