target: constify structures

Change-Id: I875cfab8dec4ade72ed9c9cd7d52baaca182a1ef
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/2295
Tested-by: jenkins
This commit is contained in:
Spencer Oliver
2014-09-11 22:14:31 +01:00
parent b675edcc95
commit 3160c66408
16 changed files with 27 additions and 27 deletions

View File

@@ -44,7 +44,7 @@
#define _DEBUG_INSTRUCTION_EXECUTION_
#endif
static char *armv7m_exception_strings[] = {
static const char * const armv7m_exception_strings[] = {
"", "Reset", "NMI", "HardFault",
"MemManage", "BusFault", "UsageFault", "RESERVED",
"RESERVED", "RESERVED", "RESERVED", "SVCall",
@@ -148,7 +148,7 @@ int armv7m_restore_context(struct target *target)
* They are assigned by vendors, which generally assign different numbers to
* peripherals (such as UART0 or a USB peripheral controller).
*/
char *armv7m_exception_string(int number)
const char *armv7m_exception_string(int number)
{
static char enamebuf[32];