From 47eceaa229c98db9a308f6f890bc8740320903f0 Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Fri, 8 Aug 2014 22:22:30 +0100 Subject: [PATCH] jlink: Constantify string arrays Change-Id: Ib63f4c32e6d5a7dad21567521d938142ea40b308 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/2245 Tested-by: jenkins --- src/jtag/drivers/jlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jtag/drivers/jlink.c b/src/jtag/drivers/jlink.c index c7a9195c..39be9412 100644 --- a/src/jtag/drivers/jlink.c +++ b/src/jtag/drivers/jlink.c @@ -150,7 +150,7 @@ static uint8_t usb_out_buffer[JLINK_OUT_BUFFER_SIZE]; #define EMU_CAP_RAWTRACE 30 #define EMU_CAP_RESERVED_3 31 -static char *jlink_cap_str[] = { +static const char * const jlink_cap_str[] = { "Always 1.", "Supports command EMU_CMD_GET_HARDWARE_VERSION", "Supports command EMU_CMD_WRITE_DCC", @@ -196,7 +196,7 @@ static char *jlink_cap_str[] = { #define JLINK_HW_TYPE_JLINK_LITE_ADI 5 #define JLINK_HW_TYPE_MAX 6 -static char *jlink_hw_type_str[] = { +static const char * const jlink_hw_type_str[] = { "J-Link", "J-Trace", "Flasher", -- 2.39.5