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:
Marc Schink
2015-10-02 17:35:15 +02:00
committed by Freddie Chopin
parent 0578e4c4f4
commit 24d9f0cfa0
9 changed files with 30 additions and 25 deletions

View File

@@ -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);