Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jun 2019 19:50:58 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r348813 - head/sys/amd64/amd64
Message-ID:  <201906081950.x58JowFt010384@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906081950.x58JowFt010384>