target/image: Use proper data types
While at it, fix some coding style issues. Change-Id: Id521394d89e0bf787a6f812701c2cc0fe7e4e63f Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: http://openocd.zylin.com/5919 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
6dbfdcd00f
commit
73746d78b7
@@ -441,14 +441,14 @@ COMMAND_HANDLER(handle_flash_write_image_command)
|
||||
duration_start(&bench);
|
||||
|
||||
if (CMD_ARGC >= 2) {
|
||||
image.base_address_set = 1;
|
||||
image.base_address_set = true;
|
||||
COMMAND_PARSE_NUMBER(llong, CMD_ARGV[1], image.base_address);
|
||||
} else {
|
||||
image.base_address_set = 0;
|
||||
image.base_address_set = false;
|
||||
image.base_address = 0x0;
|
||||
}
|
||||
|
||||
image.start_address_set = 0;
|
||||
image.start_address_set = false;
|
||||
|
||||
retval = image_open(&image, CMD_ARGV[0], (CMD_ARGC == 3) ? CMD_ARGV[2] : NULL);
|
||||
if (retval != ERROR_OK)
|
||||
|
||||
Reference in New Issue
Block a user