svn commit: r349301 - stable/12/sys/amd64/amd64

Konstantin Belousov kib at FreeBSD.org
Sun Jun 23 11:01:11 UTC 2019


Author: kib
Date: Sun Jun 23 11:01:09 2019
New Revision: 349301
URL: https://svnweb.freebsd.org/changeset/base/349301

Log:
  MFC r348813:
  Make trap_msg array constant as well.

Modified:
  stable/12/sys/amd64/amd64/trap.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/amd64/amd64/trap.c
==============================================================================
--- stable/12/sys/amd64/amd64/trap.c	Sun Jun 23 10:59:53 2019	(r349300)
+++ stable/12/sys/amd64/amd64/trap.c	Sun Jun 23 11:01:09 2019	(r349301)
@@ -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 */


More information about the svn-src-stable mailing list