]> git.sur5r.net Git - openocd/commitdiff
jlink: Constantify string arrays
authorSpencer Oliver <spen@spen-soft.co.uk>
Fri, 8 Aug 2014 21:22:30 +0000 (22:22 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 19 Aug 2014 20:23:18 +0000 (20:23 +0000)
Change-Id: Ib63f4c32e6d5a7dad21567521d938142ea40b308
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/2245
Tested-by: jenkins
src/jtag/drivers/jlink.c

index c7a9195ce0bdb5337966f5df86fc6a49d44a810b..39be9412697c58ab30646bc7ccbc1831cbaa03dc 100644 (file)
@@ -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",