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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user