From 3a693ef526575633cc350a69aa1a5d1f08e64c46 Mon Sep 17 00:00:00 2001 From: Øyvind Harboe Date: Tue, 28 Sep 2010 15:37:56 +0200 Subject: fileio: refactor struct fileio to be an opaque structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- src/target/etm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/target/etm.c') diff --git a/src/target/etm.c b/src/target/etm.c index 9da69550..c71c5d19 100644 --- a/src/target/etm.c +++ b/src/target/etm.c @@ -1897,7 +1897,7 @@ COMMAND_HANDLER(handle_etm_load_command) return ERROR_FAIL; } - if (file.size % 4) + if (fileio_size(&file) % 4) { command_print(CMD_CTX, "size isn't a multiple of 4, no valid trace data"); fileio_close(&file); -- cgit v1.2.3