From: Spencer Oliver Date: Fri, 8 Aug 2014 21:22:30 +0000 (+0100) Subject: jlink: Constantify string arrays X-Git-Tag: v0.9.0-rc1~299 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=47eceaa229c98db9a308f6f890bc8740320903f0;p=openocd jlink: Constantify string arrays Change-Id: Ib63f4c32e6d5a7dad21567521d938142ea40b308 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/2245 Tested-by: jenkins --- 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",