svn commit: r348813 - head/sys/amd64/amd64

Konstantin Belousov kib at FreeBSD.org
Sat Jun 8 19:50:59 UTC 2019


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


More information about the svn-src-head mailing list