Make trap_msg array constant as well.

Suggested by:	tijl
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2019-06-08 19:50:57 +00:00
parent f61f5a0b2d
commit 8b49f4dd80

View File

@ -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 */