X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Flpc2900.c;h=251f682f21eae6fc7b8d4cda75b4ba2d5884aaec;hp=f2daab4cd124861f1038b764adb5c6e2f6eebcd6;hb=ca594adb5a71f2bf60c1380172b8e61b075d9479;hpb=9741e126fd854815460296ad47d027129c7f17bf diff --git a/src/flash/lpc2900.c b/src/flash/lpc2900.c index f2daab4cd1..251f682f21 100644 --- a/src/flash/lpc2900.c +++ b/src/flash/lpc2900.c @@ -635,7 +635,7 @@ static int lpc2900_handle_read_custom_command( struct command_context_s *cmd_ctx /* Try and open the file */ fileio_t fileio; - char *filename = args[1]; + const char *filename = args[1]; int ret = fileio_open( &fileio, filename, FILEIO_WRITE, FILEIO_BINARY ); if( ret != ERROR_OK ) { @@ -747,8 +747,8 @@ static int lpc2900_handle_write_custom_command( struct command_context_s *cmd_ct image.base_address = 0; image.start_address_set = 0; - char *filename = args[1]; - char *type = (argc >= 3) ? args[2] : NULL; + const char *filename = args[1]; + const char *type = (argc >= 3) ? args[2] : NULL; retval = image_open(&image, filename, type); if (retval != ERROR_OK) {