X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Fimage.c;h=fa51ce33e49de5f937267c42efd97e122fe5551e;hp=b1b7e3a6af723eeeb330d0526bafb4e7ae3827ed;hb=24d9f0cfa0ee84e927d84957cab22c6571fa3185;hpb=0578e4c4f4fbaec3e833fec0c118cee4698ce7c6 diff --git a/src/target/image.c b/src/target/image.c index b1b7e3a6af..fa51ce33e4 100644 --- a/src/target/image.c +++ b/src/target/image.c @@ -130,7 +130,7 @@ static int image_ihex_buffer_complete_inner(struct image *image, /* we can't determine the number of sections that we'll have to create ahead of time, * so we locally hold them until parsing is finished */ - int filesize; + size_t filesize; int retval; retval = fileio_size(fileio, &filesize); if (retval != ERROR_OK) @@ -520,7 +520,7 @@ static int image_mot_buffer_complete_inner(struct image *image, * so we locally hold them until parsing is finished */ int retval; - int filesize; + size_t filesize; retval = fileio_size(fileio, &filesize); if (retval != ERROR_OK) return retval; @@ -707,7 +707,7 @@ int image_open(struct image *image, const char *url, const char *type_string) retval = fileio_open(&image_binary->fileio, url, FILEIO_READ, FILEIO_BINARY); if (retval != ERROR_OK) return retval; - int filesize; + size_t filesize; retval = fileio_size(&image_binary->fileio, &filesize); if (retval != ERROR_OK) { fileio_close(&image_binary->fileio);