helper/fileio: Use size_t for file size.
Change-Id: Ie116b44ba15e8ae41ca9ed4a354a82b2c4a92233 Signed-off-by: Marc Schink <openocd-dev@marcschink.de> Reviewed-on: http://openocd.zylin.com/2997 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
committed by
Freddie Chopin
parent
0578e4c4f4
commit
24d9f0cfa0
@@ -1788,7 +1788,7 @@ COMMAND_HANDLER(handle_etm_load_command)
|
||||
if (fileio_open(&file, CMD_ARGV[0], FILEIO_READ, FILEIO_BINARY) != ERROR_OK)
|
||||
return ERROR_FAIL;
|
||||
|
||||
int filesize;
|
||||
size_t filesize;
|
||||
int retval = fileio_size(&file, &filesize);
|
||||
if (retval != ERROR_OK) {
|
||||
fileio_close(&file);
|
||||
|
||||
Reference in New Issue
Block a user