Author: kib Date: Sat Jun 8 19:50:57 2019 New Revision: 348813 URL: https://svnweb.freebsd.org/changeset/base/348813
Log: Make trap_msg array constant as well. Suggested by: tijl Sponsored by: The FreeBSD Foundation MFC after: 1 week Modified: head/sys/amd64/amd64/trap.c Modified: head/sys/amd64/amd64/trap.c ============================================================================== --- head/sys/amd64/amd64/trap.c Sat Jun 8 19:02:17 2019 (r348812) +++ head/sys/amd64/amd64/trap.c Sat Jun 8 19:50:57 2019 (r348813) @@ -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 */ _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"