summaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/fileio.c2
-rw-r--r--src/helper/fileio.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/helper/fileio.c b/src/helper/fileio.c
index 71cae758..84d46bd5 100644
--- a/src/helper/fileio.c
+++ b/src/helper/fileio.c
@@ -137,7 +137,7 @@ int fileio_close(struct fileio *fileio)
retval = fileio_close_local(fileio);
- free(fileio->url);
+ free((void*)fileio->url);
fileio->url = NULL;
return retval;
diff --git a/src/helper/fileio.h b/src/helper/fileio.h
index 8cba926a..6ed6fe45 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;