aboutsummaryrefslogtreecommitdiff
path: root/src/helper/fileio.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 14:22:21 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-16 15:47:09 -0800
commit69df712d1d06b2c698bed3de086b9f734de73b7e (patch)
tree9defb053b7bce774beb5ebac30bae757b0dd5ba8 /src/helper/fileio.h
parent9763aef76a42fdaedcec9825fdf502f8cb7dd628 (diff)
downloadriscv-openocd-69df712d1d06b2c698bed3de086b9f734de73b7e.zip
riscv-openocd-69df712d1d06b2c698bed3de086b9f734de73b7e.tar.gz
riscv-openocd-69df712d1d06b2c698bed3de086b9f734de73b7e.tar.bz2
struct fileio: improve member types
Add const keyword to file url and cast to free(). Make size an ssize_t and chase all format strings that use it.
Diffstat (limited to 'src/helper/fileio.h')
-rw-r--r--src/helper/fileio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/fileio.h b/src/helper/fileio.h
index 8cba926..6ed6fe4 100644
--- a/src/helper/fileio.h
+++ b/src/helper/fileio.h
@@ -47,8 +47,8 @@ enum fileio_access
};
struct fileio {
- char *url;
- long long size;
+ const char *url;
+ ssize_t size;
enum fileio_type type;
enum fileio_access access;
FILE *file;