diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-10-07 16:24:38 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-10-07 16:25:38 +0200 |
commit | 86e5c9c242380957c253971ce638deddd54d5b9e (patch) | |
tree | 0b7643363a295d04966995ea367a9308fb1ae7a4 /lib | |
parent | e21bf0b60c1b9d67fe7553105b6440c3fce7c0bb (diff) |
Cleanup: consistent, fixed size data types for generic flag fields
Instead of using int or unsigned int for generic function flag
arguments, consistently use an unsigned, fixed size type.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sqfs/dir_writer.c | 2 | ||||
-rw-r--r-- | lib/sqfs/io_file.c | 2 | ||||
-rw-r--r-- | lib/sqfs/meta_writer.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/sqfs/dir_writer.c b/lib/sqfs/dir_writer.c index 5ce29b6..ff5faa7 100644 --- a/lib/sqfs/dir_writer.c +++ b/lib/sqfs/dir_writer.c @@ -105,7 +105,7 @@ void sqfs_dir_writer_destroy(sqfs_dir_writer_t *writer) free(writer); } -int sqfs_dir_writer_begin(sqfs_dir_writer_t *writer, sqfs_u16 flags) +int sqfs_dir_writer_begin(sqfs_dir_writer_t *writer, sqfs_u32 flags) { sqfs_u32 offset; sqfs_u64 block; diff --git a/lib/sqfs/io_file.c b/lib/sqfs/io_file.c index b07ae24..f93af4d 100644 --- a/lib/sqfs/io_file.c +++ b/lib/sqfs/io_file.c @@ -107,7 +107,7 @@ static int stdio_truncate(sqfs_file_t *base, sqfs_u64 size) } -sqfs_file_t *sqfs_open_file(const char *filename, int flags) +sqfs_file_t *sqfs_open_file(const char *filename, sqfs_u32 flags) { sqfs_file_stdio_t *file; int open_mode, temp; diff --git a/lib/sqfs/meta_writer.c b/lib/sqfs/meta_writer.c index 5db4fe7..ee92b3b 100644 --- a/lib/sqfs/meta_writer.c +++ b/lib/sqfs/meta_writer.c @@ -41,7 +41,7 @@ struct sqfs_meta_writer_t { /* The raw data chunk that data is appended to */ sqfs_u8 data[SQFS_META_BLOCK_SIZE]; - int flags; + sqfs_u32 flags; meta_block_t *list; meta_block_t *list_end; }; @@ -56,7 +56,7 @@ static int write_block(sqfs_file_t *file, meta_block_t *outblk) sqfs_meta_writer_t *sqfs_meta_writer_create(sqfs_file_t *file, sqfs_compressor_t *cmp, - int flags) + sqfs_u32 flags) { sqfs_meta_writer_t *m; |